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.

43 lines
1.6 KiB

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