Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the mac address from IP address
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01098000
Message ID:
01098625
Vues:
10
Thks for your quick answer, i forgot to tell something: is not a computer, it is a handheld which conects wireless thourhg and access point and it gots the IP from a Windows DHCP. can i still use this?

any way of querying the DHCP server for the info?

>Selim,
>
>The GetAdaptersInfo function can be used only for the local computer.
>
>To obtain MAC address for a LAN computer use either WMI Win32_NetworkAdapterConfiguration class or the NetWkstaTransportEnum function, as long as you have sufficient priviliges on accessing this computer.
>
>oServer = GetObject("winmgmts:\\" + "SOMECOMPUTER" + "\root\cimv2")
>oAdapters = oServer.ExecQuery(;
>	"SELECT * FROM Win32_NetworkAdapterConfiguration")
>
>
>Using NetWkstaTransportEnum to obtain MAC Address of remote server
>http://www.news2news.com/vfp/?example=435
>
>How to retrieve adapter information for the local computer (including MAC address)
>http://www.news2news.com/vfp/?example=347&ver=wmi
.......
DO WHILE .T.
      ME.Work()
ENDDO
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform