UuidCompare

The UuidCompare function compares two UUIDs.

#include <rpc.h>
signed int RPC_ENTRY UuidCompare( 
  UUID *  Uuid1,        
  UUID *  Uuid2,        
  RPC_STATUS *  Status  
);
 

Parameters

Uuid1
Specifies a pointer to a UUID. This UUID is compared with the UUID specified in the Uuid2 argument.
Uuid2
Specifies a pointer to a UUID. This UUID is compared with the UUID specified in the Uuid1 argument.
Status
Returns any errors that may occur, and will normally be set by the function to RPC_S_OK upon return.

Return Values

Values Meaning
-1 The Uuid1 argument is less than the Uuid2 argument.
0 The Uuid1 argument is equal to the Uuid2 argument.
1 The Uuid1 argument is greater than the Uuid2 argument.

Remarks

An application calls the UuidCompare routine to compare two UUIDs and determine their order. The returned value gives the order as shown above.

QuickInfo

  Windows NT: Yes
  Windows CE: Unsupported.
  Header: Declared in rpcdce.h.
  Import Library: Link with rpcrt4.lib.

See Also

UuidCreate