V86MMGR_Get_EMS_XMS_Limits


include v86mmgr.inc

mov     ebx, VMHandle
VxDcall V86MMGR_Get_EMS_XMS_Limits
mov     [MinEMS], eax       ; min EMS kilobytes (multiple of 4)
mov     [MaxEMS], edx       ; max EMS kilobytes (multiple of 4)
mov     [MinXMS], esi       ; min XMS kilobytes (multiple of 4)
mov     [MaxXMS], edi       ; max XMS kilobytes (multiple of 4)
mov     [fHMAEnabled], ecx  ; 1 if HMA is enabled, 0 otherwise

Gets the current EMS and XMS limits. Uses all registers except EBX, EBP, and segment registers.

EAX

Minimum EMS kilobytes (multiple of 4)

ECX

Access to HMA is disabled (if zero) or enabled (if 1)

EDI

Maximum XMS kilobytes (multiple of 4)

EDX

Maximum EMS kilobytes (multiple of 4)

ESI

Minimum XMS kilobytes (multiple of 4)


VMHandle

Handle of the virtual machine to get the EMS and XMS limits of.