// mountdev.h
typedef struct _MOUNTDEV_UNIQUE_ID {
USHORT UniqueIdLength;
UCHAR UniqueId[1];
} MOUNTDEV_UNIQUE_ID, *PMOUNTDEV_UNIQUE_ID;
View the official Windows Driver Kit DDI referenceNo description available.
The MOUNTDEV_UNIQUE_ID structure contains a unique volume ID that a mount manager client provides to the mount manager in response to an IOCTL_MOUNTDEV_QUERY_UNIQUE_ID request.
UniqueIdLengthThe length of the unique volume ID, in bytes.
UniqueIdArray of bytes that specify the unique volume ID.
For a discussion of unique volume IDs and how the mount manager uses them, see Supporting Mount Manager Requests in a Storage Class Driver.
As a best practice, the implementer must not thread synchronize and must not make blocking and/or Interprocess Communication (IPC) function calls.
IOCTL_MOUNTDEV_QUERY_UNIQUE_ID