Set_Thread_Time_Out


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.

TimeOut_Delay

The specified number of milliseconds that must transpire in the thread before the time-out occurs.

Reference_Data

Data that is provided to the callback procedure.

Thread_Time_Out_Proc

A callback procedure that is called when the time-out occurs.

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.