msg(M_FATAL, "Error [%u] opening device information set key: %s", (unsigned int)err, strerror_win32(err, gc));
}
+ msg(D_TAP_WIN_DEBUG, "Enumerate device interface lists:");
for (DWORD i = 0;; ++i)
{
SP_DEVINFO_DATA device_info_data;
dev_iif->net_cfg_instance_id = (unsigned char *)string_alloc((char *)net_cfg_instance_id, gc);
dev_iif->device_interface = string_alloc(dev_if, gc);
+ msg(D_TAP_WIN_DEBUG, "NetCfgInstanceId: %s, Device Interface: %s",
+ dev_iif->net_cfg_instance_id,
+ dev_iif->device_interface);
+
/* link into return list */
if (!first)
{
msg(M_FATAL, "Error opening registry key: %s", ADAPTER_KEY);
}
+ msg(D_TAP_WIN_DEBUG, "Enumerate drivers in registy: ");
while (true)
{
char enum_name[256];
last->next = reg;
}
last = reg;
+
+ msg(D_TAP_WIN_DEBUG, "NetCfgInstanceId: %s, Driver: %s",
+ reg->guid, print_windows_driver(reg->windows_driver));
}
}
}
path = tuntap_device_path;
}
+ msg(D_TAP_WIN_DEBUG, "Using device interface: %s", path);
+
tt->hand = CreateFile(path,
GENERIC_READ | GENERIC_WRITE,
0, /* was: FILE_SHARE_READ */
0);
if (tt->hand == INVALID_HANDLE_VALUE)
{
- msg(D_TUNTAP_INFO, "CreateFile failed on %s device: %s", print_windows_driver(tt->windows_driver), path);
+ msg(D_TUNTAP_INFO | M_ERRNO, "CreateFile failed on %s device: %s", print_windows_driver(tt->windows_driver), path);
return false;
}