>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao