[issue26006] 32 bits python ctypes creates 64 bits process from 32 bits executable

2016-01-04 Thread Artur Korobeynyk
Artur Korobeynyk added the comment: the Wow64Process output parameter is true for a 32-bit process. WOW64 is short for Win32 running on Win64 (i.e. the environment used to run 32-bit programs in 64-bit Windows). Even a 32-bit WOW64 process has some 64-bit modules, such as ntdll.dll, wow64.dll

[issue26006] 32 bits python ctypes creates 64 bits process from 32 bits executable

2016-01-04 Thread Artur Korobeynyk
New submission from Artur Korobeynyk: Hi, I have a 32 bits python on 64 bits Windows and 32 bits executable (compiled from native C). When I do kernel32.CreateProcessA(path_to_exe, ...) python creates a process which is 64 bit (ctypes IsWow64Process returns true). I expect it to be 32 as well