Previous: 7.2.31. Function 0502 - Free Memory Block To the Table of Contents Next: 7.2.33. Function 0800 - Physical Address Mapping
7.2.31. Function 0502 - Free Memory Block Table of Contents 7.2.33. Function 0800 - Physical Address Mapping

- 7.2.32. -
Table of Contents
7. PMODE/W MSDOS Extender
7.2. PMODE/W Supported DPMI INT 31h functions
7.2.32. Function 0503 - Resize Memory Block


7.2.32. 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: 7.2.31. Function 0502 - Free Memory Block To the Table of Contents Next: 7.2.33. Function 0800 - Physical Address Mapping
7.2.31. Function 0502 - Free Memory Block Table of Contents 7.2.33. Function 0800 - Physical Address Mapping

- 7.2.32. -