include vmm.inc
mov eax, Timeout
VMMCall Time_Slice_Sleep
Makes the current thread idle for a specified number of milliseconds. The thread can be woken if either Wake_Up_VM is called on the thread's VM or the specified number of milliseconds elapses. Uses Flags.
This service should not be used as a timeout function. The timeout passed in is treated as the maximum time the thread will sleep, but it may wake up earlier. This function will return when either someone calls Wake_Up_VM on this VM or when this timeout or the previous timeout set for this VM expires. A timeout of 0 will yield.
A VxD should avoid calling this service while owning the critical section; doing so makes the system appear to hang for the TimeOut duration.