Using Win32 functions in Visual FoxPro Image Gallery
Remote Procedure Call (RPC)
RpcStringFree
UuidCompare
UuidCreate
UuidCreateNil
UuidCreateSequential
UuidFromString
UuidToString
Code examples:
Generating random UUID values
UuidCreate
..msdn    Add comment     W32 Constants      Translate this page
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.
Usage:
#DEFINE RPC_S_OK 0
LOCAL cUUID

cUUID=REPLICATE(CHR(0), 16)

IF UuidCreate(@cUUID)=RPC_S_OK
* valid UUID created
ENDIF
My comment:
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
Word Index links for the UuidCreate :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2009-11-19 11:08:25
Modified: 2009-11-19 12:25:00
Visited in last 7 days: 12
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.255.168)
2 min.Example: 'Validating the heap of the calling process'
3 day(s)Function: 'GetDlgItem'
Function group: 'Dialog Box'
Google
Advertise here!