CompareStorageDuids function (storduid.h)

The CompareStorageDuids routine compares two device unique identifiers (DUIDs) and reports whether they match or not.

Syntax

DUID_MATCH_STATUS CompareStorageDuids(
  [in] PSTORAGE_DEVICE_UNIQUE_IDENTIFIER Duid1,
  [in] PSTORAGE_DEVICE_UNIQUE_IDENTIFIER Duid2
);

Parameters

[in] Duid1

A pointer to a DUID to compare with the DUID that Duid2 points to.

[in] Duid2

A pointer to a DUID to compare with the DUID that Duid1 points to.

Return value

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.

Requirements

Requirement Value
Target Platform Desktop
Header storduid.h (include Storduid.h)

See also

DUID_MATCH_STATUS