Borland C++ reference

_OvrInitExt

raw OCR

Initializes extended memory swapping for the overlay manager.

Defined in header <dos.h>

Syntax

#include <dos.h>
int cdecl far _OvrInitExt(unsigned long start Address,
                         unsigned  long length);

Portability

DOSUNIXWindowsANSI CC++ only
■

Remarks

_OvrlnitExt checks for the presence of extended memory, using the known methods to detect the presence of other programs using extended mem-ory, and allocates memory from it. If startAddress is zero, the overlay manager determines the start address and uses, at most, the size of the overlays. If startAddress is not zero, then the overlay manager uses the extended memory above that address.

In both cases, a nonzero length parameter gives the limit of the usable extended memory by the overlay manager.

Return value

_OvrlnitExt returns 0 if the overlay manager is able to use extended memory for swapping.

See also

Example

#include <dos.h>

int main(void)
{
   /* use the extended memory from the linear address  Ox200000L (2MB), as much as
      necessary */
   _OvrInitExt (0x200000L, 0);
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.

Extraction notes

  • heading `OvrlnitExt` read as `_OvrInitExt`