Solved

UuidCreateSequential vs. UuidCreate on WinME

Posted on 2004-04-19
6
1,178 Views
Last Modified: 2007-12-19
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
0
Comment
Question by:frox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 17

Expert Comment

by:mokule
ID: 10859408
From
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.

0
 

Author Comment

by:frox
ID: 10859791
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
0
 
LVL 17

Expert Comment

by:mokule
ID: 10859902
Sorry.
I didn't read carefully.

Unfortunately I can't test it.
0
 

Author Comment

by:frox
ID: 10872934
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
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 10875322
User resolved; closed, 250 points refunded.

Netminder
Site Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question