include vmm.inc
mov eax, TimeOut_Delay
mov edx, Reference_Data
mov esi, OFFSET32 Thread_Time_Out_Proc
mov edi, ThreadHandle
VMMCall Set_Thread_Time_Out
mov [TimeOut_Handle], esi
Schedules a time-out that will occur after the specified thread has executed for the specified length of time. Uses ESI, flags. This is an asynchronous service.
The time-out will occur after the thread has run for the specified number of milliseconds. If there is more than one thread executing, it may take more than the specified time to occur. See Timing Query Services for more information about time-outs.