Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
3.4 KiB

  1. // no wrappers are needed on non-x86 since this is only for win9x interop
  2. #ifdef _X86_
  3. #define PathCleanupSpec _AorW_PathCleanupSpec
  4. #define SHCLSIDFromString _AorW_SHCLSIDFromString
  5. #define SHILCreateFromPath _AorW_SHILCreateFromPath
  6. #define SHSimpleIDListFromPath _AorW_SHSimpleIDListFromPath
  7. #define StrToOleStr _AorW_StrToOleStr
  8. #define GetFileNameFromBrowse _AorW_GetFileNameFromBrowse
  9. #define OpenRegStream _AorW_OpenRegStream
  10. #define PathQualify _AorW_PathQualify
  11. #define PathProcessCommand _AorW_PathProcessCommand
  12. #define Win32DeleteFile _AorW_Win32DeleteFile
  13. #define PathYetAnotherMakeUniqueName _AorW_PathYetAnotherMakeUniqueName
  14. #define PathResolve _AorW_PathResolve
  15. #define Shell_GetCachedImageIndex _AorW_Shell_GetCachedImageIndex
  16. #define SHRunControlPanel _AorW_SHRunControlPanel
  17. #define PickIconDlg _AorW_PickIconDlg
  18. #define SHCreateDirectory _AorW_SHCreateDirectory
  19. // The following functions were originally only TCHAR versions
  20. // in Win95, but now have A/W versions. Since we still need to
  21. // run on Win95, we need to treat them as TCHAR versions and
  22. // undo the A/W #define
  23. #ifdef ILCreateFromPath
  24. #undef ILCreateFromPath
  25. #endif
  26. #define ILCreateFromPath _AorW_ILCreateFromPath
  27. #ifdef SHGetSpecialFolderPath
  28. #undef SHGetSpecialFolderPath
  29. #endif
  30. #define SHGetSpecialFolderPath _AorW_SHGetSpecialFolderPath
  31. #ifdef IsLFNDrive
  32. #undef IsLFNDrive
  33. #endif
  34. #define IsLFNDrive _AorW_IsLFNDrive
  35. // Define the prototypes for each of these forwarders...
  36. #ifdef __cplusplus
  37. extern "C" { /* Assume C declarations for C++ */
  38. #endif /* __cplusplus */
  39. extern int _AorW_Shell_GetCachedImageIndex(LPCTSTR pszIconPath, int iIconIndex, UINT uIconFlags);
  40. extern int _WorA_Shell_GetCachedImageIndex(LPCWSTR pszIconPath, int iIconIndex, UINT uIconFlags);
  41. extern int _AorW_SHRunControlPanel(LPCTSTR pszOrig_cmdline, HWND errwnd);
  42. extern LPITEMIDLIST _AorW_ILCreateFromPath(LPCTSTR pszPath);
  43. extern int _AorW_PathCleanupSpec(LPCTSTR pszDir, LPTSTR pszSpec);
  44. extern void _AorW_PathQualify(LPTSTR pszDir);
  45. extern LONG WINAPI _AorW_PathProcessCommand(LPCTSTR lpSrc, LPTSTR lpDest, int iDestMax, DWORD dwFlags);
  46. extern HRESULT _AorW_SHCLSIDFromString(LPCTSTR lpsz, LPCLSID lpclsid);
  47. extern BOOL _AorW_SHGetSpecialFolderPath(HWND hwndOwner, LPTSTR pszPath, int nFolder, BOOL fCreate);
  48. extern HRESULT _AorW_SHILCreateFromPath(LPCTSTR pszPath, LPITEMIDLIST *ppidl, DWORD *rgfInOut);
  49. extern LPITEMIDLIST _AorW_SHSimpleIDListFromPath(LPCTSTR pszPath);
  50. extern BOOL WINAPI _AorW_GetFileNameFromBrowse(HWND hwnd, LPTSTR szFilePath, UINT cchFilePath,
  51. LPCTSTR szWorkingDir, LPCTSTR szDefExt, LPCTSTR szFilters, LPCTSTR szTitle);
  52. extern IStream * _AorW_OpenRegStream(HKEY hkey, LPCTSTR pszSubkey, LPCTSTR pszValue, DWORD grfMode);
  53. extern BOOL _AorW_Win32DeleteFile(LPCTSTR lpszFileName);
  54. extern BOOL _AorW_PathYetAnotherMakeUniqueName(LPTSTR pszUniqueName,
  55. LPCTSTR pszPath,
  56. LPCTSTR pszShort,
  57. LPCTSTR pszFileSpec);
  58. extern BOOL _AorW_PathResolve(LPTSTR lpszPath, LPCTSTR dirs[], UINT fFlags);
  59. extern BOOL _AorW_IsLFNDrive(LPTSTR lpszPath);
  60. extern int _AorW_PickIconDlg(HWND hwnd, LPTSTR pszIconPath, UINT cchIconPath, int * piIconIndex);
  61. extern int _AorW_SHCreateDirectory(HWND hwnd, LPCTSTR pszPath);
  62. #ifdef __cplusplus
  63. }
  64. #endif /* __cplusplus */
  65. #endif // _X86_