ExitThread, ExitProcess and Closehandle
Posted on 1999-01-25
After I use CreateThread(or CreateProcess), which function
should I use to close the Thread(or Process)? CloseHandle or ExitThread(ExitProcess)? Can CloseHandle release the memory of the thread(or Process)? Which one is better?
Also, If the thread(or process) hasn't finished, can I use
closehandle to force it to terminate with memory released?
I always see examples using CloseHandle, when exitThread or exitprocess be used?