Call_VM_Event

include vmm.inc

mov     ebx, VMHandle
mov     esi, OFFSET32 EventCallback
mov     edx, RefData
VMMCall Call_VM_Event
mov     [EventHandle], esi
 

Calls the event callback function immediately or schedules an event for the specified virtual machine. This is an asynchronous service. Uses Flags

VMHandle
Handle of the virtual machine to process the event. This value must be a valid VM handle.
EventCallback
Address of the callback function to install. For more information about the callback function, see EventCallback.
RefData
Reference data to pass to the event callback function.

Since the specified virtual machine must process the event, the system carries out a task switch if necessary before calling the function. The callback function can carry out any actions and use any VMM services.

For additional information about event callbacks, see Event Callbacks.

See Also

Cancel_VM_Event, EventCallback, Schedule_VM_Event