[python-win32] about wmi exception
Tim Golden
mail at timgolden.me.uk
Tue Jul 15 18:26:50 CEST 2008
Patrol Sun wrote:
> I want to prevent some process from running. The code is in the
> following.
As an additional datum, the WMI event management code
(at least for process creation) works by polling, not
by receiving events from the underlying O/S. That
means that it's possible to miss a creation event.
If you want to be certain to close down certain processes,
you'll need roll-your-own polling and look for the existence
of a process, not its creation.
TJG
More information about the python-win32
mailing list