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.

57 lines
1.2 KiB

  1. /*
  2. * volumeid.h - Volume ID ADT module description.
  3. */
  4. /* Types
  5. ********/
  6. typedef struct _volumeid
  7. {
  8. int nUnused;
  9. }
  10. VOLUMEID;
  11. DECLARE_STANDARD_TYPES(VOLUMEID);
  12. /* SearchForLocalPath() input flags */
  13. typedef enum _searchforlocalpathinflags
  14. {
  15. /* Search matching local devices for missing volume. */
  16. SFLP_IFL_LOCAL_SEARCH = 0x0001,
  17. ALL_SFLP_IFLAGS = SFLP_IFL_LOCAL_SEARCH
  18. }
  19. SEARCHFORLOCALPATHINFLAGS;
  20. /* Prototypes
  21. *************/
  22. /* volumeid.c */
  23. extern BOOL CreateVolumeID(LPCTSTR, PVOLUMEID *, PUINT);
  24. extern void DestroyVolumeID(PVOLUMEID);
  25. extern COMPARISONRESULT CompareVolumeIDs(PCVOLUMEID, PCVOLUMEID);
  26. extern BOOL SearchForLocalPath(PCVOLUMEID, LPCTSTR, DWORD, LPTSTR);
  27. extern UINT GetVolumeIDLen(PCVOLUMEID);
  28. extern BOOL GetVolumeSerialNumber(PCVOLUMEID, PCDWORD *);
  29. extern BOOL GetVolumeDriveType(PCVOLUMEID, PCUINT *);
  30. extern BOOL GetVolumeLabel(PCVOLUMEID, LPCSTR *);
  31. #ifdef UNICODE
  32. extern BOOL GetVolumeLabelW(PCVOLUMEID, LPCWSTR *);
  33. #endif
  34. extern COMPARISONRESULT CompareDWORDs(DWORD, DWORD);
  35. #if defined(DEBUG) || defined (VSTF)
  36. extern BOOL IsValidPCVOLUMEID(PCVOLUMEID);
  37. #endif
  38. #ifdef DEBUG
  39. extern void DumpVolumeID(PCVOLUMEID);
  40. #endif