// storduid.h
typedef enum _DUID_MATCH_STATUS {
DuidExactMatch,
DuidSubIdMatch,
DuidNoMatch,
DuidErrorGeneral,
DuidErrorMissingDuid,
DuidErrorVersionMismatch,
DuidErrorInvalidDuid,
DuidErrorInvalidDeviceIdDescSize,
DuidErrorInvalidDeviceDescSize,
DuidErrorInvalidLayoutSigSize,
DuidErrorInvalidLayoutSigVersion,
DuidErrorMaximum
} DUID_MATCH_STATUS;
View the official Windows Driver Kit DDI referenceNo description available.
The DUID_MATCH_STATUS enumeration lists the status values that the CompareStorageDuids routine returns.
DuidExactMatchAll fields in the two Device Unique Identifiers (DUIDs) match exactly.
DuidSubIdMatchEither the serial number or one of the unique sub-IDs matches. The two DUIDs probably represent the same device.
DuidNoMatchNone of the sub-IDs match in page 83h of the vital product data (VPD). None of the non-VPD data matches.
DuidErrorGeneralAn error occurred for an unspecified cause.
DuidErrorMissingDuidOne of the two DUIDs to compare is missing.
DuidErrorVersionMismatchThe two DUIDs to compare do not have the same version.
DuidErrorInvalidDuidAt least one of the two DUIDs to compare is invalid.
DuidErrorInvalidDeviceIdDescSizeAt least one of the two DUIDs to compare contains an invalid device ID descriptor (STORAGE_DEVICE_ID_DESCRIPTOR). This descriptor reports VPD data.
DuidErrorInvalidDeviceDescSizeAt least one of the two DUIDs to compare contains an invalid device descriptor (STORAGE_DEVICE_DESCRIPTOR). This descriptor reports non-VPD inquiry data..
DuidErrorInvalidLayoutSigSizeAt least one of the two DUIDs to compare contains an invalid drive layout signature size.
DuidErrorInvalidLayoutSigVersionAt least one of the two DUIDs to compare contains an invalid drive layout signature.
DuidErrorMaximumThis value delimits the upper limit of the enumeration values in this enumeration. This value allows a DUID consumer to create a loop that tests for all valid error values that the CompareStorageDuids routine returns. As new identifier data is added to future versions of the DUID, new error values will specify which parts of the DUID are not well-formed.