Leaked source code of windows server 2003
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.

63 lines
2.9 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 PathProcessCommand _AorW_PathProcessCommand
  11. #define PathYetAnotherMakeUniqueName _AorW_PathYetAnotherMakeUniqueName
  12. #define Shell_GetCachedImageIndex _AorW_Shell_GetCachedImageIndex
  13. #define SHRunControlPanel _AorW_SHRunControlPanel
  14. #define PickIconDlg _AorW_PickIconDlg
  15. #define SHCreateDirectory _AorW_SHCreateDirectory
  16. // The following functions were originally only TCHAR versions
  17. // in Win95, but now have A/W versions. Since we still need to
  18. // run on Win95, we need to treat them as TCHAR versions and
  19. // undo the A/W #define
  20. #ifdef ILCreateFromPath
  21. #undef ILCreateFromPath
  22. #endif
  23. #define ILCreateFromPath _AorW_ILCreateFromPath
  24. #ifdef SHGetSpecialFolderPath
  25. #undef SHGetSpecialFolderPath
  26. #endif
  27. #define SHGetSpecialFolderPath _AorW_SHGetSpecialFolderPath
  28. // Define the prototypes for each of these forwarders...
  29. #ifdef __cplusplus
  30. extern "C" { /* Assume C declarations for C++ */
  31. #endif /* __cplusplus */
  32. extern int _AorW_Shell_GetCachedImageIndex(LPCTSTR pszIconPath, int iIconIndex, UINT uIconFlags);
  33. extern int _AorW_SHRunControlPanel(LPCTSTR pszOrig_cmdline, HWND errwnd);
  34. extern LPITEMIDLIST _AorW_ILCreateFromPath(LPCTSTR pszPath);
  35. extern int _AorW_PathCleanupSpec(LPCTSTR pszDir, LPTSTR pszSpec);
  36. extern LONG WINAPI _AorW_PathProcessCommand(LPCTSTR lpSrc, LPTSTR lpDest, int iDestMax, DWORD dwFlags);
  37. extern HRESULT _AorW_SHCLSIDFromString(LPCTSTR lpsz, LPCLSID lpclsid);
  38. extern BOOL _AorW_SHGetSpecialFolderPath(HWND hwndOwner, LPTSTR pszPath, int nFolder, BOOL fCreate);
  39. extern HRESULT _AorW_SHILCreateFromPath(LPCTSTR pszPath, LPITEMIDLIST *ppidl, DWORD *rgfInOut);
  40. extern LPITEMIDLIST _AorW_SHSimpleIDListFromPath(LPCTSTR pszPath);
  41. extern BOOL WINAPI _AorW_GetFileNameFromBrowse(HWND hwnd, LPTSTR szFilePath, UINT cchFilePath,
  42. LPCTSTR szWorkingDir, LPCTSTR szDefExt, LPCTSTR szFilters, LPCTSTR szTitle);
  43. extern IStream * _AorW_OpenRegStream(HKEY hkey, LPCTSTR pszSubkey, LPCTSTR pszValue, DWORD grfMode);
  44. extern BOOL _AorW_PathYetAnotherMakeUniqueName(LPTSTR pszUniqueName,
  45. LPCTSTR pszPath,
  46. LPCTSTR pszShort,
  47. LPCTSTR pszFileSpec);
  48. extern int _AorW_PickIconDlg(HWND hwnd, LPTSTR pszIconPath, UINT cchIconPath, int * piIconIndex);
  49. extern int _AorW_SHCreateDirectory(HWND hwnd, LPCTSTR pszPath);
  50. #ifdef __cplusplus
  51. }
  52. #endif /* __cplusplus */
  53. #endif // _X86_