- /* Find out more about this adapter */
-
- snprintf(regpath, sizeof(regpath), "%s\\%s\\Connection", REG_CONTROL_NET, adapterid);
-
- if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, regpath, 0, KEY_READ, &key2)) {
- logger(LOG_ERR, _("Unable to read registry"));
- return false;
- }
-
- len = sizeof(adaptername);
- RegQueryValueEx(key2, "Name", 0, 0, adaptername, &len);
-