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.
The callback function can carry out any operation and can modify the EAX, EBX, ECX, EDX, ESI, EDI, and Flags registers.
Call_When_Task_Switched