## Virtual Device Driver Reference for OS/2

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

### VDHAllocMem

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function allocates a small amount of memory on a LONG/DWORD boundary. The memory is allocated from the system area, so the address is valid in all process contexts.

    #include mvdm.h

    ULONG    NumBytes;

    ULONG    OptionFlag;  /*  Number of bytes to allocate */

    PVOID    rc;

    rc = VDHAllocMem(NumBytes, OptionFlag);