Click here to Skip to main content
15,893,722 members
Home / Discussions / COM
   

COM

 
GeneralRe: Uniquness of GUID of COM Pin
Ranjish29-Oct-04 21:01
Ranjish29-Oct-04 21:01 
GeneralRe: Uniquness of GUID of COM Pin
ThatsAlok29-Oct-04 21:10
ThatsAlok29-Oct-04 21:10 
GeneralRe: Uniquness of GUID of COM Pin
Ranjish29-Oct-04 21:15
Ranjish29-Oct-04 21:15 
GeneralRe: Uniquness of GUID of COM Pin
ThatsAlok29-Oct-04 21:28
ThatsAlok29-Oct-04 21:28 
GeneralRe: Uniquness of GUID of COM Pin
Ranjish29-Oct-04 21:32
Ranjish29-Oct-04 21:32 
GeneralRe: Uniquness of GUID of COM Pin
ThatsAlok29-Oct-04 21:39
ThatsAlok29-Oct-04 21:39 
GeneralRe: Uniquness of GUID of COM Pin
ThatsAlok29-Oct-04 21:45
ThatsAlok29-Oct-04 21:45 
GeneralRe: Uniquness of GUID of COM Pin
Jörgen Sigvardsson30-Oct-04 8:49
Jörgen Sigvardsson30-Oct-04 8:49 
In the MSDN docs it is stated that CoCreateGuid uses UuidCreate. The docs for UuidCreate says:
For security reasons, it is often desirable to keep ethernet/token ring
addresses on networks from becoming available outside a company or organization.
In Windows XP/2000, the UuidCreate function generates a UUID that cannot be traced
to the ethernet/token ring address of the computer on which it was
generated.
To make something untraceable or unrecognizable, a simple one-way
hash can be used. My bet is that on 2000/XP the ethernet adress is hashed together
with something volatile as the system tick count before it is used in the GUID
creation process. That provides anonymity and untraceability.

For NT4, 95+DCOM, and 98:
In Windows NT 4.0, Windows 95, DCOM release, and
Windows 98, UuidCreate returns RPC_S_UUID_LOCAL_ONLY when the originating computer
does not have an ethernet/token ring (IEEE 802.x) address. In this case, the
generated UUID is a valid identifier, and is guaranteed to be unique among all
UUIDs generated on the computer. However, the possibility exists that another
computer without an ethernet/token ring address generated the identical UUID.
Therefore you should never use this UUID to identify an object that is not
strictly local to your computer. Computers with ethernet/token ring addresses
generate UUIDs that are guaranteed to be globally unique.
Windows ME is not mentioned, but I think they fall into the second category.

It seems to me that 2000/XP generates "collision safe" GUIDs without a networking card.


Ranjish wrote:
What will be the impact of this on the one, which is having the same ID somewhere else?

It seems to depend a great deal on what OS you used for generating your GUID. Even if you were generating GUIDs on a Windows 98 machine without a networking card, the risk of you generating a CLSID which is identical to another CLSID not generated on your machine is still pretty small.

BTW: here's the MSDN link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreate.asp[^]

--
Weiter, weiter, ins verderben.
Wir müssen leben bis wir sterben.

Are you bright too?[^]

GeneralRe: Uniquness of GUID of COM Pin
User 21559731-Oct-04 17:29
User 21559731-Oct-04 17:29 
GeneralWriting IE toolbar Pin
creamcat2129-Oct-04 17:28
creamcat2129-Oct-04 17:28 
GeneralRe: Writing IE toolbar Pin
ThatsAlok29-Oct-04 21:08
ThatsAlok29-Oct-04 21:08 
GeneralUsing Component Without Registering It Pin
perlmunger29-Oct-04 8:09
perlmunger29-Oct-04 8:09 
Generalvisual basic programmer needed to work on a virtual serial port project. Pin
zhou226-Oct-04 22:38
zhou226-Oct-04 22:38 
Questiona small example in COM? Pin
liyang yu26-Oct-04 2:54
liyang yu26-Oct-04 2:54 
AnswerRe: a small example in COM? Pin
Michael P Butler26-Oct-04 3:02
Michael P Butler26-Oct-04 3:02 
GeneralRe: a small example in COM? Pin
liyang yu26-Oct-04 3:23
liyang yu26-Oct-04 3:23 
GeneralRe: a small example in COM? Pin
Michael P Butler26-Oct-04 23:09
Michael P Butler26-Oct-04 23:09 
GeneralCOM/DCOM Events Pin
sudeepkukreti26-Oct-04 2:27
sudeepkukreti26-Oct-04 2:27 
GeneralIDL Related - TLB generation Pin
rajandpayal25-Oct-04 13:51
rajandpayal25-Oct-04 13:51 
GeneralIDL related. TLB generation Pin
rajandpayal25-Oct-04 10:01
rajandpayal25-Oct-04 10:01 
GeneralGetObject() failed Pin
liyang yu25-Oct-04 4:04
liyang yu25-Oct-04 4:04 
GeneralRe: GetObject() failed Pin
Jörgen Sigvardsson25-Oct-04 8:38
Jörgen Sigvardsson25-Oct-04 8:38 
GeneralRe: GetObject() failed Pin
liyang yu25-Oct-04 8:47
liyang yu25-Oct-04 8:47 
GeneralRe: GetObject() failed Pin
Jörgen Sigvardsson25-Oct-04 8:51
Jörgen Sigvardsson25-Oct-04 8:51 
GeneralRe: GetObject() failed Pin
liyang yu25-Oct-04 8:56
liyang yu25-Oct-04 8:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.