[python-win32] Re: Memory Usage for Processes

Roger Upole rwupole at msn.com
Fri Feb 11 01:51:22 CET 2005


You'll need to specify more access in OpenProcess.
It's 1 now, which is only PROCESS_TERMINATE.
Most likely you're getting an access denied in the
GetProcessMemoryInfo call.  (This is why a bare except:
is not generally a good thing to do)  Try changing the access mode to
win32con.PROCESS_QUERY_INFORMATION|win32con.PROCESS_VM_READ.
    hth
        Roger



More information about the Python-win32 mailing list