I have a block of code that works great in 32bit, and I\'m trying to make it work in 64bit as well. When running the process, the sizeof(structure) seems to be returning in
Try using the correct definition:
class MODULEENTRY32(Structure):
_fields_ = [( 'dwSize' , DWORD ) ,
( 'th32ModuleID' , DWORD ),
( 'th32ProcessID' , DWORD ),
( 'GlblcntUsage' , DWORD ),
( 'ProccntUsage' , DWORD ) ,
( 'modBaseAddr' , POINTER(BYTE) ) ,
( 'modBaseSize' , DWORD ) ,
( 'hModule' , HMODULE ) ,
( 'szModule' , c_char * 256 ),
( 'szExePath' , c_char * 260 ) ]