Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get ethernet card physical address
Message
From
13/05/1998 07:55:29
 
 
To
12/05/1998 14:29:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00098661
Message ID:
00098979
Views:
32
>>>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...
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