SyntaxFix
Write A Post
Hire A Developer
Questions
You can use GetExitCodeProcess. It will return STILL_ACTIVE (259) if the process is still running (or if it happened to exit with that exit code :( ).
GetExitCodeProcess
STILL_ACTIVE