Cancel_Thread_Event


include vmm.inc

mov     edi, ThreadHandle
mov     esi, EventHandle
VMMcall Cancel_Thread_Event

Cancels an event that was previously scheduled using the Schedule_Thread_Event service. A virtual device must not attempt to cancel an event if the callback function for the event has already been called. This is an asynchronous service. Uses Flags

ThreadHandle

Handle of the thread for which the event is to be canceled. This value must be a valid thread handle and it must equal the thread handle used when the event was originally scheduled.

EventHandle

Handle of the event to cancel. This parameter can be zero to indicate that no event should be canceled.

The event callback function typically sets the event handle to zero so that subsequent calls by the thread to this service do not cause errors.

See also Schedule_Thread_Event