>>>Larry,
>>>
>>>This is cool. Maybe you ought to write an article about it.
>>
>>Don't think I haven't thought about it. ;-)
>
>Please do. I have had very unreliable results no matter what method I have used. The MACADDRESS.OCX only works on NT/2K and even then I have had it return 12 zeros on some machines. Even on supposedly identical machines, I have had it work on one and return zeros on the other. On Win9x/ME running Novell client32, I have had problems with NetLib doing the same thing. I have also use the API suggestions directly with mixed results. The Unique ID [GUID] offered by Christof Lange or Rod Paddock or one of those guys even does not return the same value every time.
>
>I can not believe there is no 100% reliable way to read the MAC address from a netcard because WinIPCFG on Win9x machines will do it right every time. The equivalent utility on NT/2K does it reliably as well.
Mark,
Christof and Rod probably offered CoCreateGUID which works on w9x and NT. However it calls UuidCreate function which changed behaviour. In order to prevent tracing of machine addresses now it doesn't use MAC address. UuidCreateSequential return MAC address but not supported on w9x.
I believe there are functions for this and even to get MAC addresses of other computers on LAN (propvided someone has right) possibly in winsock.dll. There should be because I could do this easily on a Novell LAN in fox2x days.
Cetin