Export (0) Print
Expand All

GetExitCodeThread (Windows Embedded CE 6.0)

1/6/2010

This function retrieves the termination status of the specified thread.


BOOL GetExitCodeThread(
  HANDLE hThread,
  LPDWORD lpExitCode
);

hThread

[in] Handle to the thread.

lpExitCode

[out] Pointer to a 32-bit variable to receive the thread termination status.

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

If the specified thread has not ended, the status returned is STILL_ACTIVE.

The following statuses can be returned if the process has ended:

  • The exit value specified in the ExitThread or TerminateThread function.
  • The return value from the thread function.
  • The exit value of the thread process.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.01 and later

Community Additions

ADD
Show:
© 2015 Microsoft