Call_When_Idle


include vmm.inc

mov     esi, OFFSET32 IdleCallback
VMMcall Call_When_Idle
jc      error

Installs a system-idle callback function. The system calls this function whenever the Windows kernel signals that Windows is idle and all other virtual machines are also idle. Virtual devices typically use this service to perform background operations. For example, the memory manager uses this service to asynchronously write dirty pages to the backing store. Uses Flags.

IdleCallback

Address of the callback function to install. For more information about the callback function, see IdleCallback.

Virtual devices can install any number of idle callback functions. The system calls each one, in the order installed, until one of the functions clears the carry flag. A system-idle callback function remains installed until it is explicitly removed by the Cancel_Call_When_Idle service.

See also IdleCallback