## Graphics Adapter Device Driver Reference

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

### VHLockMem

Select an item:

    Syntax
    Parameters
    Returns
    Glossary

Description:

VHLockMem makes code or data segments available for ring 0 interrupt-time processing. At interrupt time, code and data segments must be non-swappable and accessible from the ring 0 context.

    #include <GRADD.h>

    PVOID    pAddress;  /*  Address within the first page of code or data. */

    ULONG    ulLength;  /*  Size of code or data segment. */

    BOOL     fData;     /*  FALSE indicates code segment; TRUE indicates data segment. */

    ULONG    rc;        /*  Return value. */

    rc = VHLockMem(pAddress, ulLength, fData);