V86MMGR_Get_VM_Flat_Sel

include v86mmgr.inc

VxDcall V86MMGR_Get_VM_Flat_Sel


The V86MMGR_Get_VM_Flat_Sel service returns a selector that points to the base of the specified virtual machine's V86 address space. This is useful for 32-bit applications since this selector can be used to point to any address in the virtual machine's V86 address space. The selector is writable, and has a limit of 11000h bytes so that the high memory area is also addressable.

The selector returned is in the specified virtual machine's LDT. Therefore, the selector is only valid to use when the virtual machine is running (is the current virtual machine).

Parameters

EBX

Specifies a virtual machine handle (any virtual machine handle is valid).

Return Value

The EAX register contains a selector with the base at the high linear address of V86 memory (the high word is zero).

Uses

EAX, Flags