_GetThreadTerminationStatus


include vmm.inc

VMMcall _GetThreadTerminationStatus, <ThreadHandle>
mov     StatusFlags, eax

Retrieves the termination status of the specified thread. Uses C calling convention. Uses EAX, ECX, EDX, and Flags.

THREAD_TERM_STATUS_CRASH_PEND

The virtual machine associated with the thread is terminating because a catastrophic error occurred.

THREAD_TERM_STATUS_NUKE_PEND

The thread is in a must-complete section. The associated virtual machine will be closed when it reaches the end of the section.

THREAD_TERM_STATUS_SUSPEND

The thread is in a must-complete section. The associated virtual machine will be suspended when it reaches the end of the section.


If the return value is 0, the thread is not in a must-complete section and the virtual machine is not about to be suspended or closed.

ThreadHandle

Handle of the thread.