include vmm.inc mov al, ExitCode ; exit code to set VMMcall Set_System_Exit_Code |
The Set_System_Exit_Code service 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).
This service is intended for the exclusive use of the virtual shell device.
ExitCode
Specifies the exit code value.
This service has no return 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.
EDX, Flags