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.
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.
VMMTerminateThread, VM_Terminate