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.
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.