Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CoCreateGuid API
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00418450
Message ID:
00418616
Views:
44
>Hi All,
>
>I want to use this Api to generate my table primary keys.
>This API return the UuidCreate error code.
>
>After reading the UuidCreate return error code I understand that UuidCreate returns only a local key ( valid on the computer ) when the originating computer does not have an ethernet/token ring (IEEE 802.x) address.
>
>So my question is :
>
>Did the computer need a network card or is a dialup connection enought ?
>
>Tks
>Marcel

It needs the network card. The network card has an internal address (MAC address) that is "supposedly" guaranteed to be unique in the world (it is used for routing information through the internet). The CoCreateGUID function uses this so that any number it generates will be unique.

GUIDs generated on a computer without a network card are probably going to be unique as well. But there is a slight chance that they are not.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform