include vmm.inc
mov esi, OFFSET32 ThreadSwitchCallback
VMMCall Call_When_Thread_Switched
Installs a callback function which the system calls whenever it switches to a different thread or task. This service should be used sparingly, and the callback function should be optimized for speed. Uses Flags.
Virtual devices can install any number of callback functions. The system calls each one in the order installed, until all functions have been called.
Call_When_Idle, Call_When_Not_Critical, Call_When_Task_Switched, Cancel_Call_When_Thread_Switched, ThreadSwitchCallback