 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-07-15 13:27:54 | | Modified: | 2009-11-19 12:24:31 | Visited in last 7 days: 24 |