Closed m-hilgendorf closed 2 years ago
clib/retrieve_process_state
Process
pid
OpenProcess
retrieve_process_state
WaitForSingleObject
GetExitCodeProcess
handle
CreateProcess
clib/retrieve_process_state
to accept a pointer to aProcess
instead of usingpid
.OpenProcess
, as lookup by pid fails if called long after the process terminates.retrieve_process_state
fails on Windows (either inWaitForSingleObject
orGetExitCodeProcess
)handle
field toProcess
to hold the process handle created byCreateProcess
.