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.
ThreadSwitchCallback
Address of the callback function to install. For more information about the callback function, see ThreadSwitchCallback.
Virtual devices can install any number of callback functions. The system calls each one in the order installed, until all functions have been called.
See also Call_When_Idle, Call_When_Not_Critical, Call_When_Task_Switched, Cancel_Call_When_Thread_Switched, ThreadSwitchCallback