Subject | Re: [firebird-support] Replicator pseudo-code (sorry, it's a little long...) |
---|---|
Author | David Johnson |
Post date | 2004-01-31T15:44:57Z |
The API call is as follows (pasted from the Windows API Online Help shipped with Delphi):
CoCreateGuid QuickInfo
Creates a GUID, a unique 128-bit integer used for CLSIDs and interface identifiers.
HRESULT CoCreateGuid(
GUID *pguid //Receives a pointer to the GUID on return
);
Parameter
pguid
Receives a pointer to the requested GUID on return.
Return Value
S_OK
Indicates the GUID was successfully created.
Win32 errors are returned by UuidCreate but wrapped as an HRESULT.
Comments
The CoCreateGuid function calls UuidCreate (documented in the RPC Programmer's Guide and Reference), which creates a GUID, a globally unique 128-bit integer used for CLSIDs and interface IDs. 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.
CoCreateGuid QuickInfo
Creates a GUID, a unique 128-bit integer used for CLSIDs and interface identifiers.
HRESULT CoCreateGuid(
GUID *pguid //Receives a pointer to the GUID on return
);
Parameter
pguid
Receives a pointer to the requested GUID on return.
Return Value
S_OK
Indicates the GUID was successfully created.
Win32 errors are returned by UuidCreate but wrapped as an HRESULT.
Comments
The CoCreateGuid function calls UuidCreate (documented in the RPC Programmer's Guide and Reference), which creates a GUID, a globally unique 128-bit integer used for CLSIDs and interface IDs. 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.
----- Original Message -----
From: Jonathan Neve
To: firebird-support@yahoogroups.com
Sent: Saturday, January 31, 2004 1:15 AM
Subject: Re: [firebird-support] Replicator pseudo-code (sorry, it's a little long...)
Sounds good, but how exactly do I generate a GUID under Windows? Is
there an API call to make? If so, what is it?
Thanks!
Jonathan Neve.
Yahoo! Groups Sponsor
ADVERTISEMENT
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-support/
b.. To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]