include v86mmgr.inc VxDcall V86MMGR_Free_Buffer |
The V86MMGR_Free_Buffer service deallocates a buffer that was allocated by the V86MMGR_Allocate_Buffer service. It will optionally copy data from the translation buffer to the buffer pointed to by FS:ESI.
The buffers are maintained as a stack. Therefore, the last buffer allocated must be the first buffer freed.
EBX
Specifies the current virtual machine handle. The current virtual machine must be in protected mode.
EBP
Points to a Client_Reg_Struc structure containing the register values of the current virtual machine.
ECX
Specifies the number of bytes to free (returned from the V86MMGR_Allocate_Buffer service).
FS:ESI
Specifies a pointer to an extended memory buffer. If the carry flag is set, the service copies the buffer from V86 memory; otherwise, it does not copy the buffer.
This service has no return value.
Flags