## Graphics Adapter Device Driver Reference

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

### VHAllocMem

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

VHAllocMem returns a 32-bit pointer to a piece of memory. The caller of this function supplies the byte count required. This function is a helper service for operations that are common across all GRADDs.

    #include <GRADD.h>

    ULONG    cBytes;  /*  Number of bytes of memory requested. */

    PVOID    pMem;    /*  Returned address of allocated memory, or NULL. */

    pMem = VHAllocMem(cBytes);