[... re tracking suspend/hibernate operations ...] > I'm the author of a helper WMI module which I > know a number of people find useful in this area: > > http://timgolden.me.uk/python/wmi.html > > but in this case (a) I have embarrassingly little support > for extrinsic events (which this is)
FWIW, I've just patched the wmi module to support extrinsic events such as the PowerManagementEvent and DeviceChangeEvent (useful for spotting when a USB stick has been removed). It's not up the website yet, but if anyone wants to give it a go, let me know. TJG _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32