include v86mmgr.inc
mov ebx, VMHandle
mov ebp, OFFSET32 ClientRegisters
mov ah, IdSegmentReg
mov al, IdOffsetReg
VxDcall V86MMGR_Load_Client_Ptr
Loads the FS:ESI register pair with the far pointer in the specified client registers. Uses ESI, Flags, FS.
mov ax, (Client_DS * 100h) + Client_DX
VxDcall V86MMGR_Load_Client_Ptr
If the virtual machine is running a 16-bit protected-mode application, the high word of the offset in ESI is set to zero. Otherwise, if the virtual machine is running a 32-bit program or is in VxD_Exec_Mode, the high word of ESI is not set to zero. This allows most translation procedures to operate correctly without the need to test the execution mode of the current virtual machine.