DOS/32 Advanced DOS Extender - Programmer's Reference

2.33 - DPMI function 0502h - Free Memory Block

Frees a memory block that was previously allocated with the Allocate Memory Block DPMI function 0501h.


In: AX = 0502h
SI:DI = memory block handle

if successful:
CF clear

if failed:
CF set
AX = error code

8023h - invalid handle


a) No descriptors are freed by this call. It is the client's responsibility to free any descriptors that it previously allocated to map the memory block. Descriptors should be freed before linear memory blocks.


Copyright Supernar Systems, Ltd. 1996-2005
All Rights Reserved.