UuidCompare function (rpcdce.h)

An application calls the
UuidCompare function to compare two UUIDs and determine their order. The returned value gives the order.

Syntax

signed int UuidCompare(
  UUID       *Uuid1,
  UUID       *Uuid2,
  RPC_STATUS *Status
);

Parameters

Uuid1

Pointer to a UUID. This UUID is compared with the UUID specified in the Uuid2 parameter.

Uuid2

Pointer to a UUID. This UUID is compared with the UUID specified in the Uuid1 parameter.

Status

Returns any errors that may occur, and will typically be set by the function to RPC_S_OK upon return.

Return value

Value Meaning
–1
The Uuid1 parameter is less than the Uuid2 parameter.
0
The Uuid1 parameter is equal to the Uuid2 parameter.
1
The Uuid1 parameter is greater than the Uuid2 parameter.
 
Note  For a list of valid error codes, see RPC Return Values.
 

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header rpcdce.h (include Rpc.h)
Library Rpcrt4.lib
DLL Rpcrt4.dll

See also

UuidCreate