Share via


STORAGE_IDENTIFICATION (Windows Embedded CE 6.0)

1/6/2010

This structure contains identification information that you can use to create a globally unique storage identifier.

Syntax

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, dwSerialNumOffsetbytes 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

Header diskio.h
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Block Driver Structures
IOCTL_DISK_GET_STORAGEID

Other Resources

Block Drivers