Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving a PCs processor ID
Message
De
20/10/2001 19:57:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570999
Message ID:
00571386
Vues:
46
>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform