[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
DosMemAvail() Get total available extended memory.
------------------------------------------------------------------------------
Function : Get total available extended memory.
Syntax : USHORT BLXAPI DosMemAvail(PULONG bytesavail);
bytesavail Pointer to a long integer to receive the number of bytes of
available extended memory.
Return : The total available extended memory in bytes.
DosMemAvail() returns the amount of extended memory available which may be
allocated with DosAllocSeg() and DosAllocHuge().
Example:
#include <stdio.h>
#include <blx286.h>
void main (void)
{
ULONG ext_mem_avail;
if (DosMemAvail(&ext_mem_avail) != 0)
{
printf("Unable to determine free extended memory\n");
exit(255);
}
printf("Free extended memory is %08X bytes\n",ext_mem_avail);
}
See Also:
DosAllocHuge()
DosAllocSeg()
DosRealAvail()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson