I\'m trying to write a program which executes make.exe from MinGW distribution in the current directory and makes use of its STDOUT data and exit code. I have a handle to proces
Leaving a tip for someone else's purpose. I managed to reach the ERROR_INVALID_PARAMETER (87)
by trying to open:
The second case may be a problem when you e.g. claim a result from GetWindowThreadProcessId directly, which is an identifier of the thread that created the window
, instead of its pointer parameter (which gives you requested PID).