TaskSwitchCallback

mov     eax, OldVMHandle
mov     ebx, CurVMHandle
call    [TaskSwitchCallback]
 

Performs programmer-defined processing whenever a task switch occurs. TaskSwitchCallback is a programmer-defined callback function installed by the Call_When_Task_Switched service. Uses Flags.

OldVMHandle
Handle of the previous virtual machine.
CurVMHandle
Handle of the current virtual machine.

The callback function can carry out any operation and can modify the EAX, EBX, ECX, EDX, ESI, EDI, and Flags registers.

See Also

Call_When_Task_Switched