Hi All,
Can any one tell me how to get the active network interface name using C and windows API?
From web I came to know that that active interface name is found at:
Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{GUID of Adapter}\Connection
Under this key, we have Name which gives name as "Local Area Connection/ wireless network connection....".
I need to get the value at that Name Field through program.
How to find this {GUID of Adapter}?
Please help me with sample code which does registry accesses to get this active interface name?