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.

44 lines
1.5 KiB

  1. #include <debug.h>
  2. #include "dllload.h"
  3. #include <shconv.h> // for UNICODE/ANSI conversion macros
  4. DWORD IsPathGoodMyDocsPath(HWND hwnd, LPCTSTR pPath);
  5. void RestoreMyDocsFolder(void);
  6. void UpdateSendToFile();
  7. HRESULT GetFolderDisplayName(UINT csidl, LPTSTR pPath, UINT cch);
  8. #define PATH_IS_GOOD 0x00000000
  9. #define PATH_IS_DESKTOP 0x00000001
  10. #define PATH_IS_PROFILE 0x00000002
  11. #define PATH_IS_SYSTEM 0x00000003
  12. #define PATH_IS_WINDOWS 0x00000004
  13. #define PATH_IS_SHELLFOLDER 0x00000005
  14. #define PATH_IS_MYDOCS 0x00000006
  15. #define PATH_IS_NONDIR 0x00000007
  16. #define PATH_IS_SENDTO 0x00000008
  17. #define PATH_IS_RECENT 0x00000009
  18. #define PATH_IS_HISTORY 0x0000000A
  19. #define PATH_IS_COOKIES 0x0000000B
  20. #define PATH_IS_PRINTHOOD 0x0000000C
  21. #define PATH_IS_NETHOOD 0x0000000D
  22. #define PATH_IS_STARTMENU 0x0000000E
  23. #define PATH_IS_TEMPLATES 0x0000000F
  24. #define PATH_IS_FAVORITES 0x00000010
  25. #define PATH_IS_TEMP_INET 0x00000011
  26. #define PATH_IS_FONTS 0x00000012
  27. #define PATH_IS_APPDATA 0x00000013
  28. #define PATH_IS_DRIVEROOT 0x00000014
  29. #define PATH_IS_SYSDRIVEROOT 0x00000015
  30. #define PATH_IS_ERROR 0x00000016
  31. #define PATH_IS_NONEXISTENT 0x00000017
  32. #define PATH_IS_READONLY 0x00000018
  33. // This is a bit mask
  34. #define PATH_IS_DIFFERENT 0x00000001
  35. #define PATH_IS_EQUAL 0x00000002
  36. #define PATH_IS_CHILD 0x00000004
  37. // PATH_IS_ values returned
  38. DWORD ComparePaths(LPCTSTR pszChild, LPCTSTR pszParent);