Back to Wsl

WslcGetProcessExitCode

doc/docs/api-reference/c/process-apis/wslcgetprocessexitcode.md

2.9.4352 B
Original Source

WslcGetProcessExitCode

c
STDAPI WslcGetProcessExitCode(_In_ WslcProcess process, _Out_ PINT32 exitCode);
ParameterTypeDirection
processWslcProcessin
exitCodePINT32out

Return value: HRESULT.

Example:

c
INT32 exitCode = 0;
HRESULT hr = WslcGetProcessExitCode(process, &exitCode);