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

reckoner reckoner at gmail.com
Wed Mar 21 17:47:04 CET 2012


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.

Any help appreciated. This is for Python version 2.6.2.

Thanks!





More information about the python-win32 mailing list