Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.5 KB

UuidToString.md

File metadata and controls

61 lines (41 loc) · 1.5 KB

Home

Function name : UuidToString

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


Converts a UUID to a string.


Code examples:

Generating random UUID values
Generating sequential UUID values
Generating UUID values from numbers

Declaration:

RPC_STATUS RPC_ENTRY UuidToString(
	UUID __RPC_FAR *Uuid ,
	unsigned char __RPC_FAR * __RPC_FAR *StringUuid
);  

FoxPro declaration:

DECLARE INTEGER UuidToString IN Rpcrt4;
	STRING @Uuid,;
	LONG @StringUuid  

Parameters:

Uuid Pointer to a binary UUID.

StringUuid Pointer to a pointer to the string into which the UUID specified in the Uuid parameter will be placed.


Return value:

Returns RPC_S_OK (0) if the call succeeded.


Comments:

String representation of a UUID looks like this
E911188C-E98C-478F-97E6-19F365143953

The application is responsible for calling the RpcStringFree to release the memory that the system allocates for the StringUuid.

Note that the StringUuid is a pointer to a pointer, which adds one or two subtleties to the RPC declarations and calls in VFP.

See also: UuidFromString, RtlMoveMemory.