mirror of https://github.com/tongzx/nt5src
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
57 lines
1.2 KiB
/*
|
|
* volumeid.h - Volume ID ADT module description.
|
|
*/
|
|
|
|
|
|
/* Types
|
|
********/
|
|
|
|
typedef struct _volumeid
|
|
{
|
|
int nUnused;
|
|
}
|
|
VOLUMEID;
|
|
DECLARE_STANDARD_TYPES(VOLUMEID);
|
|
|
|
/* SearchForLocalPath() input flags */
|
|
|
|
typedef enum _searchforlocalpathinflags
|
|
{
|
|
/* Search matching local devices for missing volume. */
|
|
|
|
SFLP_IFL_LOCAL_SEARCH = 0x0001,
|
|
|
|
ALL_SFLP_IFLAGS = SFLP_IFL_LOCAL_SEARCH
|
|
}
|
|
SEARCHFORLOCALPATHINFLAGS;
|
|
|
|
|
|
/* Prototypes
|
|
*************/
|
|
|
|
/* volumeid.c */
|
|
|
|
extern BOOL CreateVolumeID(LPCTSTR, PVOLUMEID *, PUINT);
|
|
extern void DestroyVolumeID(PVOLUMEID);
|
|
extern COMPARISONRESULT CompareVolumeIDs(PCVOLUMEID, PCVOLUMEID);
|
|
extern BOOL SearchForLocalPath(PCVOLUMEID, LPCTSTR, DWORD, LPTSTR);
|
|
extern UINT GetVolumeIDLen(PCVOLUMEID);
|
|
extern BOOL GetVolumeSerialNumber(PCVOLUMEID, PCDWORD *);
|
|
extern BOOL GetVolumeDriveType(PCVOLUMEID, PCUINT *);
|
|
extern BOOL GetVolumeLabel(PCVOLUMEID, LPCSTR *);
|
|
#ifdef UNICODE
|
|
extern BOOL GetVolumeLabelW(PCVOLUMEID, LPCWSTR *);
|
|
#endif
|
|
extern COMPARISONRESULT CompareDWORDs(DWORD, DWORD);
|
|
|
|
#if defined(DEBUG) || defined (VSTF)
|
|
|
|
extern BOOL IsValidPCVOLUMEID(PCVOLUMEID);
|
|
|
|
#endif
|
|
|
|
#ifdef DEBUG
|
|
|
|
extern void DumpVolumeID(PCVOLUMEID);
|
|
|
|
#endif
|