Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.25 KB

UuidCreate.md

File metadata and controls

53 lines (34 loc) · 1.25 KB

Home

Function name : UuidCreate

Group: Remote Procedure Call (RPC) - Library: rpcrt4


Creates a new UUID.


Code examples:

Generating random UUID values

Declaration:

RPC_STATUS RPC_ENTRY UuidCreate(
	UUID __RPC_FAR *Uuid
);  

FoxPro declaration:

DECLARE INTEGER UuidCreate IN Rpcrt4;
	STRING @Uuid  

Parameters:

Uuid Returns a pointer to the created UUID.


Return value:

Returns RPC_S_OK (0) if the call succeeded.


Comments:

For security reasons, UuidCreate was modified so that it no longer uses a machine"s MAC address to generate UUIDs.

UuidCreateSequential was introduced to allow creation of UUIDs using the MAC address of a machine"s Ethernet card.

Read article GUIDs and UUIDs explained on the BetterExplained.

See also: UuidCreateSequential, UuidCreateNil, CoCreateGuid.