## Virtual Device Driver Reference for OS/2

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

### VDHAllocBlock

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function allocates a block from the specified memory block pool. This block is allocated from fixed or swappable memory, depending on the value of the OptionFlag flag when the block is created with VDHCreateBlockPool.

    #include mvdm.h

    HBLOCK    SourceBlockPool;  /*  Handle to a memory block pool */

    PVOID     rc;

    rc = VDHAllocBlock(SourceBlockPool);