cheers for the replies. so far using ctypes, i have managed to load a dll, and have the dll call a function in my python code using function pointers. what i now need to do is load an .exe that contains a windows procedure (window is hidden). how can i load an .exe using python like i loaded the dll. will winmain be executed?