Go to the first, previous, next, last section, table of contents.


_go32_dpmi_resize_dos_memory

Syntax

#include <dpmi.h>

int _go32_dpmi_resize_dos_memory(_go32_dpmi_seginfo *info);

Description

See section DPMI Overview

The info structure is the same one used to allocate the memory. Fill in a new value for size and call this function. If there is not enough memory to satisfy the request, the largest size is filled in to the size field, the memory is not resized, and this function fails.

Return Value

Zero on success, nonzero on failure.

Portability

not ANSI, not POSIX

Example

_go32_dpmi_seginfo info;
info.size = 10;
_go32_dpmi_allocate_dos_memory(&info);
info.size = 20;
_go32_dpmi_resize_dos_memory(&info);
_go32_dpmi_free_dos_memory(&info);


Go to the first, previous, next, last section, table of contents.