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, t...@probo.com
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to