Cancel_VM_Event

include vmm.inc

mov     ebx, VMHandle
mov     esi, EventHandle
VMMCall Cancel_VM_Event
 

Cancels an event that was previously scheduled using the Schedule_VM_Event or Call_VM_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.

VMHandle
Handle of the virtual machine 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 virtual machine to this service do not cause errors.

Do not use this service to cancel events scheduled using the Call_Priority_VM_Event, Call_Thread_Event, or Call_Restricted_Event service. You must cancel priority events using the Cancel_Priority_VM_Event service.

See Also

Call_Priority_VM_Event, Call_VM_Event, Cancel_Priority_VM_Event, Schedule_VM_Event