include v86mmgr.inc
mov ebp, OFFSET32 ClientRegisters
mov ebx, VMHandle
mov ecx, NumBytes
stc ; set carry flag to copy, clear otherwise
lfs esi, FarPtrMem ; buffer to receive data if carry set
VxDcall V86MMGR_Free_Buffer
Frees a buffer that was allocated by the V86MMGR_Allocate_Buffer service, and optionally copies data from the translation buffer. Uses Flags.
The buffers are maintained as a stack. Therefore, the last buffer allocated must be the first buffer freed.