Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Network Adapter Address (MAC?)
Message
De
21/02/2001 10:32:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Get Network Adapter Address (MAC?)
Divers
Thread ID:
00477977
Message ID:
00477977
Vues:
91
I've been unable to find any way to reliably get the current Adapter address. While under NT I find it appears in the registry (although it's not straight forward), the technique doesn't work under Win 95/98.
e.g.
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\N1001\Parameters]
"ProposeQNFTAddress"="0008C7DF8B6E"

While I could run IPCONFIG.EXE /ALL > c:\IPCONFIG.TXT in a DOS window and parse out the information, this seems like a quite inelegant solution, and it's obviously getting it from somewhere.

Rick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform