Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.17 KB

CoCreateGuid.md

File metadata and controls

51 lines (33 loc) · 1.17 KB

Home

Function name : CoCreateGuid

Group: COM - Library: ole32


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


Code examples:

How to generate GUID values

Declaration:

HRESULT CoCreateGuid(
  GUID * pguid
);  

FoxPro declaration:

DECLARE INTEGER CoCreateGuid IN ole32;
	STRING @ pguid  

Parameters:

pguid [out] Pointer to the requested GUID on return.


Return value:

Returns S_OK (0) if the GUID has been successfully created.


Comments:

To a very high degree of certainty, this function returns a unique value – no other invocation, on the same or any other system (networked or not), should return the same value.

Read article GUIDs and UUIDs explained on the BetterExplained.

See also: StringFromGUID2, UuidCreate.