 |
UuidCreate ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Creates a new UUID. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2009-11-19 11:08:25 | | Modified: | 2009-11-19 12:25:00 | Visited in last 7 days: 21 |