Compartilhar via


GetExitCodeProcess (Windows CE 5.0)

Send Feedback

This function retrieves the termination status of the specified process.

BOOL GetExitCodeProcess( HANDLEhProcess, LPDWORDlpExitCode);

Parameters

  • hProcess
    [in] Handle to the process.
  • lpExitCode
    [out] Pointer to a 32-bit variable to receive the process termination status.

Return Values

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Remarks

If the specified process has not terminated, the termination status returned is STILL_ACTIVE.

The following termination statuses can be returned if the process has terminated:

  • The exit value specified in the ExitProcess or TerminateProcess function
  • The return value from the main or WinMain function of the process
  • The exception value for an unhandled exception that caused the process to terminate

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

ExitProcess | TerminateProcess | WinMain

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.