STORAGE_IDENTIFICATION (Windows CE 5.0)
This structure contains identification information that you can use to create a globally unique storage identifier.
typedef struct _STORAGE_IDENTIFICATION {DWORD dwSize;DWORD dwFlags;DWORD dwManufactureIDOffset;DWORD dwSerialNumOffset;} STORAGE_IDENTIFICATION, *PSTORAGE_IDENTIFICATION;
Members
- dwSize
Size of the allocated structure and also memory for the identifiers. - dwFlags
Provides information about the manufacturer identifier and serial number.Flag Description MANUFACTURERID_INVALID The identifier for the manufacturer is not valid. SERIALNUM_INVALID The serial number is not valid. - dwManufactureIDOffset
The manufacturer identifier is located at the end of the structure, dwManufactureIDOffset bytes from the beginning of the structure. If this value is zero, there is no manufacturer identifier. - dwSerialNumOffset
The serial number is located at the end of the structure, **dwSerialNumOffset****bytes from the beginning of the structure. If this value is zero, there is no serial number provided.
Remarks
The STORAGE_IDENTIFICATION structure provides two values that you can combine to create a unique storage identifier. Use this structure in conjunction with the IOCTL_DISK_GET_STORAGEID IOCTL.
To determine the required size of the buffer, allocate a buffer the size of the STORAGE_IDENTIFICATION structure. The buffer must be at least this size to set the dwSize member to the required size. The serial number and module number are NULL terminated ASCII strings.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Diskio.h.
See Also
Block Drivers | IOCTL_DISK_GET_STORAGEID
Send Feedback on this topic to the authors