_VWIN32_WaitSingleObject

This function only returns when the specified object is in the signaled state or when the time-out interval elapses. Uses EAX, ECX, EDX, and Flags.

EBX

VxD handle which can be waited on. A VxD handle is a ring 0 event handle created by the function OpenVxDHandle.

EDX

The time-out interval, in milliseconds. The function returns if the interval elapses, even if the object's state is nonsignaled. If zero, the function tests the object's state and returns immediately. If -1, the function's time-out interval never elapses.

EAX

Flag that indicates if this is an alertable wait. Specifies whether the function returns when the system queues an I/O completion routine for execution by the calling thread. If TRUE, the function returns and the completion routine is executed. If FALSE, the function does not return, and the completion routine is not executed.

A completion routine is queued, but is not executed. The thread must run at ring 3 for this to happen. A completion routine is queued for execution when the ReadFileEx or WriteFileEx function in which it was specified has been completed. The wait function returns and the completion routine is executed only if this flag is TRUE, and the calling thread is the thread that initiated the read or write operation.

This service can only be called when the current VM is the system VM.