[python-win32] about wmi exception
Patrol Sun
sunp1028 at gmail.com
Wed Jul 16 14:46:17 CEST 2008
Thanks. Can you tell me how long the polling period of the process creation
is? So I can use the sleep and poll instead of the process creation
monitoring.
2008/7/16 Tim Golden <mail at timgolden.me.uk>:
> 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
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080716/b0c6aace/attachment.htm>
More information about the python-win32
mailing list