Using Win32 functions in Visual FoxPro Image Gallery
COM
..msdn
CLSIDFromString
CoCreateGuid
CoTaskMemFree
CreateStreamOnHGlobal
GetHGlobalFromStream
StringFromGUID2
Code examples:
How to generate GUID values
CoCreateGuid
..msdn    Add comment     W32 Constants      Translate this page
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.
Usage:
cGUID = REPLICATE(CHR(0), 16)  && 128 bits
= CoCreateGuid(@cGUID)
My comment:
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
Word Index links for the CoCreateGuid :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-07-15 13:27:54
Modified: 2009-11-19 12:24:31
Visited in last 7 days: 50
User Contributed Notes:
A.M. | 2006-07-19 15:38:22
DECLARE INTEGER UuidCreate IN rpcrt4 STRING @UUID

Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.16.43)
13 sec.Function: 'FtpOpenFile'
28 sec.Function: 'GetClientRect'
44 sec.Function: 'ChangeClipboardChain'
59 sec.Function: 'EnumDeviceDrivers'
1.25 min.Function: 'GetDiskFreeSpaceEx'
1.52 min.Function: 'FindNextPrinterChangeNotification'
1.75 min.Function: 'ChooseFont'
2 min.Function: 'DeleteMenu'
2.27 min.Function: 'CeFindNextDatabaseEx'
2.53 min.Function: 'gethostbyaddr'
Google
Advertise here!