frox
asked on
UuidCreateSequential vs. UuidCreate on WinME
I have written a (Delphi) program to extract the MAC address of the ethernet card.
The old (albeit non-standard) way to get this info was extracting it from an UUID created with UuidCreate.
At a certain point, Microsoft realized that putting a MAC address in the UUID was a privacy breach, and changed the UuidCreate function NOT to include the MAC Address. The old function was renamed to UuidCreateSequantial. This means that to get the MAC Address on old OSes you should call UuidCreate, while on newer OSes you should call UuidCreateSequential.
According to msdn, the shift was done with Windows 2000
See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreate.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreatesequential.asp
BUT, the fact is that on some WinMe machines I get rubbish results (always changing) calling UUIDCreate
Also, I found this (russian) page where it seems that on WinMe you should call UuidCreateSequential:
http://www.dinform.ru/kuban/htmls/public_htmls/2-5257.html
We get to the question:
Does anyone know if UuidCreateSequential is defined under WinME?
Alternatively, I have written a small Delphi program that allows you to test. You can download it from
www.4004.net/test_mac2.zip (source)
www.4004.net/mac.exe (compiled)
You should run it under WinME (ON A PC WITH A NETWORK CARD!!) with and without the "Use UuidCreateSequential" option and post here the results. Better if several times, to see if the results are consistent.
If (with the option checked) you get an error "Read of address FFFFFF" this means that UuidCreateSequential is not defined.
thanks
frox
The old (albeit non-standard) way to get this info was extracting it from an UUID created with UuidCreate.
At a certain point, Microsoft realized that putting a MAC address in the UUID was a privacy breach, and changed the UuidCreate function NOT to include the MAC Address. The old function was renamed to UuidCreateSequantial. This means that to get the MAC Address on old OSes you should call UuidCreate, while on newer OSes you should call UuidCreateSequential.
According to msdn, the shift was done with Windows 2000
See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreate.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreatesequential.asp
BUT, the fact is that on some WinMe machines I get rubbish results (always changing) calling UUIDCreate
Also, I found this (russian) page where it seems that on WinMe you should call UuidCreateSequential:
http://www.dinform.ru/kuban/htmls/public_htmls/2-5257.html
We get to the question:
Does anyone know if UuidCreateSequential is defined under WinME?
Alternatively, I have written a small Delphi program that allows you to test. You can download it from
www.4004.net/test_mac2.zip (source)
www.4004.net/mac.exe (compiled)
You should run it under WinME (ON A PC WITH A NETWORK CARD!!) with and without the "Use UuidCreateSequential" option and post here the results. Better if several times, to see if the results are consistent.
If (with the option checked) you get an error "Read of address FFFFFF" this means that UuidCreateSequential is not defined.
thanks
frox
ASKER
Hi Mokule,
Yes, this is the link I provided too.
The fact is that I am not 100% convinced that this is true...
Thanks anyway
frox
Yes, this is the link I provided too.
The fact is that I am not 100% convinced that this is true...
Thanks anyway
frox
Sorry.
I didn't read carefully.
Unfortunately I can't test it.
I didn't read carefully.
Unfortunately I can't test it.
ASKER
I have been able to do some tests on winMe myself.
What is stated at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreatesequential.asp
is NOT correct: UuidCreateSequential is available under winME
What is stated at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreatesequential.asp
is NOT correct: UuidCreateSequential is available under winME
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/uuidcreatesequential.asp
UuidCreateSequential
Requirements
Client: Requires Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2003 or Windows 2000 Server.