[an error occurred while processing this directive]
|
GetExitCodeThread
The GetExitCodeThread function retrieves the termination status of the specified thread.BOOL GetExitCodeThread(
HANDLE hThread, // handle to the thread
LPDWORD lpExitCode // termination status
);
Parameters
hThread
[in] Handle to the thread.
Windows NT/2000/XP: The handle must have THREAD_QUERY_INFORMATION access. For more information, see Thread Security and Access Rights.lpExitCode
[out] Pointer to a variable to receive the thread termination status.
Return Values
If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError.
b) работает без особых хлопот - стандартный метод.