Changeset 39193 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB
- Timestamp:
- Nov 3, 2011 5:05:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp
r39191 r39193 1435 1435 #else 1436 1436 /* 1437 * ??? Please explain this.... 1437 * We can not use USB Mon for reliable device add/remove tracking 1438 * since once USB Mon is notified about PDO creation and/or IRP_MN_START_DEVICE, 1439 * the function device driver may still do some initialization, which might result in 1440 * notifying too early. 1441 * Instead we use WM_DEVICECHANGE + DBT_DEVNODES_CHANGED to make Windows notify us about 1442 * device arivals/removals. 1443 * Since WM_DEVICECHANGE is a window message, create a dedicated thread to be used for WndProc and stuff. 1444 * The thread would create a window, track windows messages and call usbLibOnDeviceChange on WM_DEVICECHANGE arrival. 1445 * See comments in usbLibOnDeviceChange function for detail about using the timer queue. 1438 1446 */ 1439 1447 g_VBoxUsbGlobal.hTimerQueue = CreateTimerQueue();
Note:
See TracChangeset
for help on using the changeset viewer.