Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Simulate_Far_Ret_N
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vmm.inc
 
mov     eax, Bytes          ; number of bytes to pop from stack
VMMcall Simulate_Far_Ret_N
 
The Simulate_Far_Ret_N service simulates a far return in the current virtual
machine. This service pops the top two words (or double words) from the
stack of the current virtual machine, and places the values in the Client_CS
and Client_EIP or Client_IP registers. It then subtracts the Bytes parameter
from the Client_ESP or Client_ESP register, effectively popping any pushed
parameters from the stack.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
Bytes      Specifies the number of bytes to pop from the stack.
 
Return Value
 
This service has no return value.
 
Uses
 
Client_CS, Client_EIP, Client_ESP, Flags
 
See Also
 
Simulate_Far_Call, Simulate_Far_Ret