## Virtual Device Driver Reference for OS/2

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

### VDHAllocDOSMem

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function allocates a block of memory from the DOS memory area. Allocations start at 0 bytes and go to 256KB.

    #include mvdm.h

    ULONG    BlockSize;  /*  Size of the desired memory block (in bytes) */

    PVOID    rc;

    rc = VDHAllocDOSMem(BlockSize);