VirtualBox

Ignore:
Timestamp:
Nov 3, 2011 5:05:12 PM (13 years ago)
Author:
vboxsync
Message:

usb/win: comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp

    r39191 r39193  
    14351435#else
    14361436                        /*
    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.
    14381446                         */
    14391447                        g_VBoxUsbGlobal.hTimerQueue = CreateTimerQueue();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette