// storduid.h
DUID_MATCH_STATUS CompareStorageDuids(
[in] PSTORAGE_DEVICE_UNIQUE_IDENTIFIER Duid1,
[in] PSTORAGE_DEVICE_UNIQUE_IDENTIFIER Duid2
);
View the official Windows Driver Kit DDI referenceNo description available.
The CompareStorageDuids routine compares two device unique identifiers (DUIDs) and reports whether they match or not.
Duid1 [in]A pointer to a DUID to compare with the DUID that Duid2 points to.
Duid2 [in]A pointer to a DUID to compare with the DUID that Duid1 points to.
CompareStorageDuids returns a DUID_MATCH_STATUS value that indicates whether the two DUIDs matched or not, if the operation succeeds. Otherwise, this routine returns a DUID_MATCH_STATUS value that indicates the error status.