22.1.2 API Translation and Mapping Services

V86MMGR provides services that other virtual devices use to translate V86-mode API function calls when made by protected-mode applications. API translation consists of converting addresses provided by a protected-mode application into V86-mode addresses. The services copy data to the translation copy buffer, allocate buffer space, map memory into global V86 address space, and perform other functions necessary for API translation. The services work only for the current virtual machine.

V86MMGR provides the following API translation and mapping services:

V86MMGR_Allocate_Buffer
V86MMGR_Free_Page_Map_Region
V86MMGR_Get_Mapping_Info
V86MMGR_Get_VM_Flat_Sel
V86MMGR_Get_Xlat_Buff_State
V86MMGR_Load_Client_Ptr
V86MMGR_Map_Pages
V86MMGR_Set_Xlat_Buff_State
V86MMGR_Xlat_API
V886MMGR_Free_Buffer
V886MMGR_Set_Mapping_Info

Applications can also translate API functions without installing a virtual device by using DPMI functions.