Destroy_Thread


include vmm.inc

mov     edi, ThreadHandle
mov     eax, Destroy_Thread
VMMcall System_Control

Notifies a virtual device that the specified non-initial thread is about to be destroyed. This is a virtual device's last chance to free resources associated with the thread before the thread goes away. The virtual device may modify all general registers and flags.

ThreadHandle

Handle of the thread.

Interrupt simulation is not permitted in the thread during this message.

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

See also VMMCreateThread, Create_Thread, Destroy_VM