|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Call this function to terminate the currently executing thread.
Specifies the exit code of the thread.
Deletes the thread object from memory.
Must be called from within the thread to be terminated.
For more information on AfxEndThread, see the article Multithreading: Terminating Threads.