CoCreateGuid

Creates a GUID, a unique 128-bit integer used for CLSIDs and interface identifiers.

HRESULT CoCreateGuid(

GUID *pguid
//Receives a pointer to the GUID on return
);

Parameter

pguid

Receives a pointer to the requested GUID on return.

Return Value

S_OK

Indicates the GUID was successfully created.

Win32 errors are returned by UuidCreate but wrapped as an HRESULT.

Comments

The CoCreateGuid function calls UuidCreate (documented in the RPC Programmer's Guide and Reference), which creates a GUID, a globally unique 128-bit integer used for CLSIDs and interface IDs. To a very high degree of certainty, this function returns a unique value pics/OLE00090001.gif no other invocation, on the same or any other system (networked or not) should return the same value.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database