Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Just getting random GUIDs under Win-XP

18 views
Skip to first unread message

Guenther Brunthaler

unread,
Apr 10, 2002, 12:24:42 PM4/10/02
to
Hi all,

I have a severe problem: Since I've migrated from NT4 to XP, the
CoCreateGUID function only seems to return random GUIDs!

Because random GUIDs do not include the MAC of the system's NIC, they
cannot guaranteed to be truly unique in space and time (although I
have to admit that the chance for a collision is still rather small).

The GUIDGEN.EXE tool that is shipped with MSVC also reflects this
strange behavior: Each newly generated GUID seems to be completely
random without any reference to my NIC or the current date/time.

I was also able to repeat this effect on the native XP installation of
a friend of mine, so it seems to be a generic XP problem.

Can anyone tell me why this does happen - and what I can do about it?


Greetings,

Guenther
--
Note: the 'From'-address shown in the header is an Anti-Spam
fake-address. Please remove 'nospam.' from the address in order
to get my real email address.

In order to get my public RSA PGP-key, send mail with blank body
to: pgp-pub...@keys.pgp.net
Subject: get 0x2D2F0683

Key ID: 2D2F0683, 1024 bit, created 1993/02/05
Fingerprint: 11 71 47 2F AF 2F CD F4 E6 78 D5 E5 3E DD 07 B5

Guenther Brunthaler

unread,
Apr 10, 2002, 1:54:04 PM4/10/02
to
On Wed, 10 Apr 2002 16:24:42 GMT, Guenther Brunthaler
<gbrun...@nospam.geocities.com> wrote:

I solved the problem for myself:

Microsoft has changed the semantics of CoCreateGUID starting with W2K;
now the function UuidCreateSequential from rpcrt4.dll must be used for
the old semantics.

0 new messages