include v86mmgr.inc VxDcall V86MMGR_Set_EMS_XMS_Limits |
The V86MMGR_Set_EMS_XMS_Limits service sets the EMS and XMS memory limits for a virtual machine. This service must be made during the Create_VM message for it to work properly. This service should not be called on the system virtual machine.
EBX
Specifies the handle of the virtual machine to set limits for.
EAX
Specifies minimum EMS kilobytes.
EDX
Specifies the maximum EMS kilobytes.
ESI
Specifies the minimum XMS kilobytes.
EDI
Specifies the maximum XMS kilobytes.
ECX
Specifies the flag. See the V86MMGR.INC file for flag definitions.
If carry flag is set, the service could not set limits, or there was insufficient memory for the minimum allocation request. In this case, some of the limits may have been set. Use the V86MMGR_Get_EMS_XMS_Limits service to determine the new settings.
This service calls the GetSetDetailedVMError service to set error values.
To disable access to XMS or EMS memory, set maximum and minimum values to zero.
To set only one of the two limits, set the other maximum and minimum to -1.
The XMS limit does not include the HMA.
Flags