Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get the NIC address in VFP?
Message
From
26/10/1999 15:13:03
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00281723
Message ID:
00281737
Views:
15
>>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.

Ed,

The NIC address is also in the GUID if I recall. Not quite sure what part (yet *g*) though.

Best,
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform