## Virtual Device Driver Reference for OS/2

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

### VDHCreateBlockPool

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function creates a pool of memory blocks of a specified size. The blocks are allocated from the system area so that the block addresses are valid in all process contexts.

    #include mvdm.h

    ULONG     BlockSize;   /*  Size of block to initialize (in bytes) */

    ULONG     OptionFlag;  /*  Allocation options bit flag */

    HBLOCK    rc;

    rc = VDHCreateBlockPool(BlockSize, OptionFlag);