[python-win32] Help needed : FindWindowEx
Tim Roberts
timr at probo.com
Thu May 3 21:25:13 CEST 2007
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, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-win32
mailing list