Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

Please look at the following screenshot of my device manager.

Photobucket

And then look at the screenshot of my application (GUI made with wxWidgets library):

Photobucket

I am using GetIfTable() function . My application must be able to detect every network adapters you see in my Device Manager, including the disabled network adapter. I don't want to use GetAdaptersInfo() because it only detect the network adapter that was enabled.

When using GetIfTable() function, my application also detected a lot of Network Adapters / Interfaces that was not shown in my device manager. Some of these network adapters also not present in the registry key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}" I only want my application to detect the network adapters that is shown in my device manager above or at least exist in my registry key, including the disabled adapters, so that my application can change the MAC address of the selected network adapter by using the registry key.

Please tell me how can I solve the problem, or give me some suggestions.
Posted

1 solution

Try enumerating HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900