Doing a ps in windows.. (Is application XYZZY running?)

Douglas Alan nessus at mit.edu
Sat Jun 22 00:26:32 CEST 2002


I wrote:

> It seems that the list of processes is being cached, and then
> EnumObjectItems just returns the value from the cache.  How do I
> flush the cache?

Nevermind -- I figured it out myself.  To refresh the cache, you do:

   win32pdh.EnumObjects(None, None, 0, 1)

|>oug



More information about the Python-list mailing list