Set_System_Exit_Code


include vmm.inc

mov     al, ExitCode        ; exit code to set
VMMcall Set_System_Exit_Code

Sets the exit code value that Windows returns to MS-DOS when Windows terminates. The system copies this value to the AL register when it executes the MS-DOS End Program function (Interrupt 21h Function 4Ch). Uses EDX, Flags.

This service is intended for the exclusive use of the virtual shell device.

ExitCode

Exit code value.

This exit code is associated only with the exit of the system not the system virtual machine.

In the case of an abnormal termination, the system may set its own exit code value and ignore the value set by this service.