Click to See Complete Forum and Search --> : UuidCreateSequential and MAC address


nirbr
October 21st, 2009, 07:57 AM
Hi,
UuidCreateSequential is said to contain the MAC address of the generating computer. Which bytes of the generated UUID reflect the MAC address?
Assuming that the computer has several Ethernet adapters, which address will be used?

What happens if the computer has no adapter? I know that the generated UUID will only be unique on the generating computer, but what values will be used instead of the MAC address? Will all computers that have no adapter use the same values in this case?

Thanks,
Nir

VictorN
October 21st, 2009, 09:03 AM
... What happens if the computer has no adapter? I know that the generated UUID will only be unique on the generating computer, but what values will be used instead of the MAC address? Will all computers that have no adapter use the same values in this case?

Thanks,
NirUuidCreateSequential Function (http://msdn.microsoft.com/en-us/library/aa379322(VS.85).aspx): Remarks
For security reasons, UuidCreate was modified so that it no longer uses a machine's MAC address to generate UUIDs. UuidCreateSequential was introduced to allow creation of UUIDs using the MAC address of a machine's Ethernet card.

The UuidCreateSequential function returns RPC_S_UUID_LOCAL_ONLY when the originating computer does not have an ethernet/token ring (IEEE 802.x) address.

UuidCreate Function (http://msdn.microsoft.com/en-us/library/aa379205(VS.85).aspx)

nirbr
October 22nd, 2009, 04:40 AM
Thanks Victor,
But what is the value of the UUID when an adapter isn't connected? Will all computer in the world use the same value in place of the MAC address?

VictorN
October 22nd, 2009, 05:58 AM
Sorry, I don't know! :eek: