Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this function to terminate the currently executing thread.
void AFXAPI AfxEndThread( 
   UINT nExitCode, 
   BOOL bDelete = TRUE  
);
Parameters
- nExitCode 
 Specifies the exit code of the thread.
- bDelete 
 Deletes the thread object from memory.
Remarks
Must be called from within the thread to be terminated.
For more information on AfxEndThread, see the article Multithreading: Terminating Threads.
Requirements
Header: afxwin.h