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.

49 lines
1.2 KiB

  1. /*
  2. * util.h - Miscellaneous utility functions module description.
  3. */
  4. /* Constants
  5. ************/
  6. /* maximum length of buffer required by SeparatePath() */
  7. #define MAX_SEPARATED_PATH_LEN (MAX_PATH_LEN + 1)
  8. /* events for NotifyShell */
  9. typedef enum _notifyshellevent
  10. {
  11. NSE_CREATE_ITEM,
  12. NSE_DELETE_ITEM,
  13. NSE_CREATE_FOLDER,
  14. NSE_DELETE_FOLDER,
  15. NSE_UPDATE_ITEM,
  16. NSE_UPDATE_FOLDER
  17. }
  18. NOTIFYSHELLEVENT;
  19. DECLARE_STANDARD_TYPES(NOTIFYSHELLEVENT);
  20. /* Prototypes
  21. *************/
  22. /* util.c */
  23. extern void NotifyShell(LPCTSTR, NOTIFYSHELLEVENT);
  24. extern COMPARISONRESULT ComparePathStringsByHandle(HSTRING, HSTRING);
  25. extern COMPARISONRESULT MyLStrCmpNI(LPCTSTR, LPCTSTR, int);
  26. extern void ComposePath(LPTSTR, LPCTSTR, LPCTSTR, int);
  27. extern LPCTSTR ExtractFileName(LPCTSTR);
  28. extern LPCTSTR ExtractExtension(LPCTSTR);
  29. extern HASHBUCKETCOUNT GetHashBucketIndex(LPCTSTR, HASHBUCKETCOUNT);
  30. extern COMPARISONRESULT MyCompareStrings(LPCTSTR, LPCTSTR, BOOL);
  31. extern BOOL RegKeyExists(HKEY, LPCTSTR);
  32. extern BOOL CopyLinkInfo(PCLINKINFO, PLINKINFO *);
  33. #if defined(DEBUG) || defined(VSTF)
  34. extern BOOL IsValidPCLINKINFO(PCLINKINFO);
  35. #endif