include v86mmgr.inc
mov ebx, VMHandle
mov esi, DesiredSize
mov edi, MinimumSize
mov ecx, Flags
VxDcall V86MMGR_Allocate_V86_Pages
jc error_handler
mov [NumPages], eax
Allocates and maps the base V86 memory for a virtual machine. Uses EAX, Flags.
AV86PLocked (bit number AV86PLockedBit) | Specifies that the VM memory is to be always locked, regardless of the pager type or whether the VM is suspended. |
If an error occurs, this service calls the GetSetDetailedVMError service to set an error value.