Previous: Function 0502 - Free Memory Block To the Table of Content Next: Function 0800 - Physical Address Mapping

- 7.2.12 -
PMODE/W MSDOS Extender
PMODE/W Supported DPMI INT 31h functions

Function 0503 - Resize Memory Block

PMODE/W API

This function Changes the size of a memory block previously allocated with the Allocate Memory Block function (0501h).
In:
   AX     = 0503h
   BX:CX  = new size of block in bytes (must be non-zero)
   SI:DI  = memory block handle
Out:
   if successful:
     carry flag clear
     BX:CX  = new linear address of memory block
     SI:DI  = new memory block handle
   if failed:
     carry flag set
Notes:
After this function returns successfully, the previous handle for the memo block is invalid and should not be used anymore.

It is the client's responsibility to update any descriptors that map the memory block with the new linear address after resizing the block.


Previous: Function 0502 - Free Memory Block To the Table of Content Next: Function 0800 - Physical Address Mapping
Function 0502 - Free Memory Block Table of Content Function 0800 - Physical Address Mapping

- 7.2.12 -