Terminate_Thread


include vmm.inc

mov     edi, ThreadHandle
mov     eax, Terminate_Thread
VMMcall System_Control

Notifies a virtual device that the specified non-initial thread is about to terminate. Virtual devices typically free resources associated with the thread. The virtual device may modify all general registers and flags.

ThreadHandle

Handle of the thread being terminated.

This message is sent only to virtual devices marked 4.0, and it is sent in reverse initialization order. When a virtual machine terminates, no Terminate_Thread message is sent. Use the VM_Terminate message instead.

See also VMMTerminateThread, VM_Terminate