Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get ethernet card physical address
Message
From
13/05/1998 11:33:14
 
 
To
13/05/1998 11:06:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00098661
Message ID:
00099061
Views:
23
>>>>>How can I get ethernet card physical id on a LAN (local and remote)? At least win95 and NETBEUI will be in use. TIA.
>>>>>Cetin
>>>>
>>>>The Workstation parameter or something similar in Netware returns this. You could pass this information to an environment variable in the script and read it form your application with getenv().
>>>>
>>>>Another alternative is to copy this number in the Station variable in the network setting of Windows 95 and read it from sys(0).
>>>>
>>>>HTH, somehow not sure though ... :)
>>>>
>>>>Marc
>>>Marc,
>>>Sorry but I don't want for netware and that is not physical id. I mean the unique 8 bytes id of card. I can have it in netware via novell calls (16 bit). My problem is to do the same in VFP and netbeui,nwlink ipx/spx. VFP no more supports load binfile, call binfile.
>>>Thanks
>>>Cetin
>>
>>I believe you can query the registry to get the NIC ID, probably somewhere under HKEY_LOCAL_MACHINE\Enum\Network; sorry I can't be more specific, but I'm just back home after unscheduled surgery, and don't have full access to a machine on my network or one of my development machines here at home with my registry reference stuff on it. Looks like no DevCon for me this year...
>Yes but I can't find it in registry. If you find pls inform me. Secondly this would only have local card address ? I also want to collect others online when I login with admin rights. It was possible in FP 2.x and novell, should be in win* + NETBEUI.
>Cetin

The registry entry under {HKLM}\Enum\Network would only contain entries for physical NICs on the local machine. Under NT, it should be possible to use an API call to construct a list of valid physical network IDs available under at least TCP/IP (look at the WNet and NetWksta families of calls; if you have the MSDN Help system, the details are there, but I'm not getting out of bed to mount a CD to look up the details right now...)

Ed
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