[python-win32] Need workaround for error: (299, 'GetModuleFileNameEx' with win32process

Tim Roberts timr at probo.com
Thu Mar 22 22:36:58 CET 2012


reckoner wrote:
> when using win32process, I get the following error when I try this on a 
> Windows XP 64-bit machine:
>
> error: (299, 'GetModuleFileNameEx', 'Only part of a ReadProcessMemory or 
> WriteProcessMemory request was completed.')
>
> I don't get this error on a Windows XP 32-bit machine. After some 
> drilling around, I found out that this is because I am using a 32-bit 
> version of win32process to interrogate a 64-bit running application. 
> Now, I have to support both 32 and 64-bit Windows XP systems, so I'm 
> looking for a workaround for this. I am running the 32-bit version of 
> Python on a 64-bit Windows XP system.

I'm afraid the workaround is to install a 64-bit Python.

Alternatively, you could write yourself a very short C helper utility,
and compile that for 64-bit.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list