DosExit

Bindings: C, MASM

This call is issued when a thread completes executing. The current thread or process ends.