Close_VM


include vmm.inc

mov     eax, TimeOut
mov     ebx, VMHandle
mov     ecx, Flags
VMMcall Close_VM

Attempts to close the virtual machine, allowing all virtual devices an opportunity to clean up before the virtual machine terminates. Uses Flags.

TimeOut

Number of milliseconds the service must wait before calling the Nuke_VM service to force the virtual machine to close.

VMHandle

Handle of the virtual machine to close.

Flags

Action to take:

Value

Meaning

CVF_Continue_Exec

Return to the virtual machine after scheduling the closing event even if the virtual machine is being closed.


Whenever possible, a virtual device should use this service instead of the Nuke_VM or Crash_Cur_VM service.

See also Nuke_VM