Bing found the following results
GetExitCodeProcess function (processthreadsapi.h) - Win32 apps
GetExitCodeProcess() return 1 when process is not yet finished
ExitProcess function (processthreadsapi.h) - Win32 apps
How to use "GetExitCodeProcess", "CreateProcess" and ...
How to get value from the GetExitCodeProcess - Stack Overflow
GetExitCodeProcess
winapi - how GetExitCodeProcess get exit code when the …
Terminating a Process - Win32 apps | Microsoft Learn
nf-processthreadsapi-getexitcodeprocess.md - GitHub
winapi - GetExitCodeProcess() returns 128 - Stack Overflow