Hi,
I have named my adapters as ManagementPort0, ControlPort0 … etc.
In my program, I want to get the IP address of the ManagementPort0.
Can anyone help me how to get it.
I have tried using GetAdaptersInfo() and also GetIfTable() and GetIpAddress(). But, couldnt get the adapter names.
Any help would be appreciated.
Thanks,
Vinay
I assume you mentioned the network adapters.
You can use WMI classes: Win32_NetworkAdapter, Win32_NetworkAdapterConfiguration.
Or via Setup API find all devices in class “net”
When you say you have “named your adapters as…”, what do you mean? What API did you use to “name” your adapter?
Thomas F. Divine
http://www.pcausa.com
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-318905-
xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, March 26, 2008 5:29 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to get the adapter name
Hi,
I have named my adapters as ManagementPort0, ControlPort0 … etc.
In my program, I want to get the IP address of the ManagementPort0.
Can anyone help me how to get it.
I have tried using GetAdaptersInfo() and also GetIfTable() and
GetIpAddress(). But, couldnt get the adapter names.
Any help would be appreciated.
Thanks,
Vinay
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer