[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosRealAvail()                Get total available real mode memory.
------------------------------------------------------------------------------

 Function : Get total available real mode memory.

 Syntax   : USHORT BLXAPI DosRealAvail(PULONG bytesavail);

 bytesavail Pointer to a long integer to receive the number of bytes of
            available real mode memory.

 Return   : The total available real mode memory in bytes.

 DosRealAvail() returns the amount of real mode memory available which may be
 allocated with DosAllocRealSeg().

 Example:

    #include <stdio.h>
    #include <blx286.h>
    void main(void)
    {
    ULONG       vmfree, xmfree, rmfree ;
    if (DosVMAvail(&vmfree) == 0)
       printf("There are %08X bytes free virtual memory\n", vmfree);
    if (DosMemAvail(&xmfree) == 0)
       printf("There are %08X bytes free extended memory\n",    xmfree);
    if (DosRealAvail(&rmfree) == 0)
       printf("There are %08X bytes free real memory\n", rmfree);
    }

See Also: DosAllocRealSeg() DosMemAvail()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson