www.delorie.com/djgpp/doc/libc-2.01/libc_376.html   search  
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.

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.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997