## Virtual Device Driver Reference for OS/2

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

### VDHCreateBlockPool - Parameters

BlockSize (ULONG) Size of block to initialize (in bytes).

OptionFlag (ULONG) Allocation options bit flag. Possible value:

VDHCBP_SWAPPABLE Blocks are allocated from the swappable heap. Otherwise, blocks are allocated from the fixed heap and can be accessed at hardware interrupt time.

rc (HBLOCK) - returns

Success If the function is successful, it returns a handle to the pool of memory blocks.

Failure If the function fails, it returns 0 (zero). VDHGetError should be called to determine the nature of the problem. If OptionFlag is invalid, or if BlockSize is equal to 0 (zero), a system halt occurs.