Tim Golden wrote:
>
> It's actually made a bit easier by using
> the Win32_DeviceChange event under WMI
> (you will not be surprised to hear me say!)
>
> But once you've got the fact that the device has
> changed, I'm not sure where you go from there...

I admit that WMI is not my strong suit, but using the WMI object browser
on my machine, I find that Win32_SystemDevices contains a key called
Win32_USBHub which contains DeviceID entries for all of the USB devices
on my computer.  I have never attempted it, but I suspect that's all the
OP would need.

And actually, since I *think* he said he was working with a printer, he
may be able to look at the Win32_Printer collection instead.

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to