## Printer Device Driver

[prev][next][parent][TOC]

### GplQueryPhysicalMem

Description

This function tells you how much physical RAM is installed on your system.

The function ulPhysMem can be used in determining the amount of memory that should be reserved for banding. For the Omni driver, for example:

        if( ulPhysMem <= 4 )

           ulMaxBandMem = 256 * 1024;      // 256K bands

        elseif( ulPhysMem < 12 )

           ulMaxBandMem = 512 * 1024;      // 512K bands

        elseif( ulPhysMem < 20 )

           ulMaxBandMem = 1000 + 1024;     // 1M bands

        elseif( ulPhysMem >=20 )

           ulMaxBandMem = 2000 + 1024;     // 2M bands

Returns

ulPhysMem Amount of physical RAM installed on system.