## Graphics Adapter Device Driver Reference

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

### VHMapVRAM - Syntax

Description:

VHMapVRAM converts the physical address of VRAM to linear virtual aperture for both process and global ring 0 context.

    #include <GRADD.h>

    ULONG      ulPhysAddr;  /*  Physical address of the start of the VRAM aperture. */

    ULONG      ulLength;    /*  Length of VRAM aperture. */

    PBYTE     *pVRAM;       /*  Returned process virtual linear aperture pointer. */

    PBYTE     *pVRAMRing0;  /*  Returned ring 0 virtual linear aperture pointer. */

    ULONG      rc;          /*  Return value. */

    rc = VHMapVRAM(ulPhysAddr, ulLength, pVRAM,

           pVRAMRing0);