GetExitCodeProcess function kernel32
Retrieves the termination status of the specified process.
To learn more, see learn.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-getexitcodeprocess.
Implementation
Win32Result<bool> GetExitCodeProcess(
HANDLE hProcess,
Pointer<Uint32> lpExitCode,
) {
final result_ = GetExitCodeProcess_Wrapper(hProcess, lpExitCode);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}