## Virtual Device Driver Reference for OS/2

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

### VDHAllocPages

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function allocates a page-aligned, page-granular memory object.

    #include mvdm.h

    PVOID    StartingAddress;  /*  A specific linear address */

    ULONG    NumPages;         /*  The number of pages to allocate */

    ULONG    OptionFlag;       /*  Allocation options bit-flag */

    PVOID    rc;

    rc = VDHAllocPages(StartingAddress, NumPages,

           OptionFlag);