DOS/32 Advanced DOS Extender - Programmer's Reference


2.16 - DPMI function 0102h - Resize DOS Memory Block

Changes the size of a memory block that was previously allocated with the Allocate DOS Memory Block DPMI function 0100h.

 

In: AX = 0102h
BX = new block size in (16-byte) paragraphs
DX = selector of block to modify
Out:

if successful:
CF clear

if failed:
CF set
AX = error code
BX = maximum possible block size (paragraphs)

0007h - memory control blocks damaged
0008h - insufficient memory
0009h - incorrect memory segment specified
8011h - descriptor unavailable
8022h - invalid selector

Notes:

a) Requests to increase the size of an existing DOS memory block may fail due to subsequent DOS memory block allocations causing fragmentation of DOS memory, or insufficient remaining DOS memory.

b) Under DOS/32 Advanced and DPMI 1.0 hosts, any segment registers which contain a selector being modified are reloaded by this function.

c) Client programs should never modify or free any descriptors allocated by this function. The Free DOS Memory Block DPMI function 0101h will deallocate the descriptors automatically.

 


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