Explain the ExitThread Function used in the Windows NT
ExitThread(ExitCode)
The ExitThread( ) call is made to end the currently running thread. If the current thread is the last one in the process, the process enters signaled state and termination status is updated. The ExitProcess ( ) command should be executed to terminate execution of the application program. DLLs will be notified of exiting processes only if ExitProcess( ) is called. The Exit Code parameter will be returned to other threads waiting for this thread to terminate execution.