Thread: registry key for getting active network interface name

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    2

    Post registry key for getting active network interface name

    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?

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    GIYF. Registry functions should be at MSDN.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    2
    Thank you dude

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 12-13-2009, 04:24 PM
  2. How to get RSSI value, send to sensor, sensor receive package, repackage it?
    By techissue2008 in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-04-2009, 10:13 AM
  3. Disabling a network interface card to disconnect from LAN..
    By elroy in forum Networking/Device Communication
    Replies: 8
    Last Post: 05-16-2007, 12:53 AM
  4. Help disabling network interface from code
    By maure5 in forum C Programming
    Replies: 3
    Last Post: 03-30-2005, 08:28 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 10:45 PM