Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get the NIC address in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00281723
Message ID:
00281730
Views:
16
>Here I go again. In gool old DOS on Novell I could get the P_STATION number, the ethernet card address, using any number of different librarys. We use this to track errors and all kinds of things. How can I get this number in VFP? Is it also possible to get the name the user used to log into the network? Again this was easy in the old days.

The user name is easy - there are API calls (WNetGetUser is one, there are lots of others), the Wscript.Network object, and things like the output from IPCONFIG can provide the detail.

There are a number of APIs which can get the NIC address - you might want to take a look at Rick Strahl's wwIPStuff library. Mabry also sells a set of ActiveX controls for dealing with network isues.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform