[python-win32] USB Insertion Extrinsic Event exists?
Tim Roberts
timr at probo.com
Fri Feb 12 02:35:01 CET 2010
You wrote:
>
>...
>I would like to move away from polling as it introduces delays when the
>user is expecting an immediate response. Can anyone guide me with how to
>write a little listener; if this is possible?
Is this a windowed app? By calling RegisterDeviceNotification, you can ask to be notified via a WM_DEVICECHANGE message any time there is any change in state of any plug-and-play device. You would still have to do polling to find out whether the change was something you care about, but it would reduce the periodic polling.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list