AfxEndThread

void AfxEndThread( UINT nExitCode );

Parameters

nExitCode

Specifies the exit code of the thread.

Remarks

Call this function to terminate the currently executing thread. Must be called from within the thread to be terminated.

For more information on AfxEndThread, see the article Multithreading: Terminating Threads in Visual C++ Programmer’s Guide.

See Also   AfxBeginThread