include vmm.inc
mov edi, [hThread]
VMMCall Debug_Test_Cur_Thread
Determines whether hThread identifies the current thread. If it is not, the service sends an error message to the debugger before returning. This service is valid only with the debugging kernel. Preserves all registers and flags.
This service is typically not called directly. Virtual devices use the Assert_Cur_Thread_Handle macro instead.