## Virtual Device Driver Reference for OS/2

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

### VDHAllocMem - Parameters

NumBytes (ULONG) Number of bytes to allocate.

OptionFlag (ULONG) Bit flag describing the allocation options.

Possible value:

VDHAM_SWAPPABLE Allocate memory from the swappable heap. Otherwise, memory is allocated from the fixed heap and can be accessed at hardware interrupt time.

rc (PVOID) - returns

Success If the function is successful, it returns the address of the allocated space.

Failure If the function fails, it returns 0. VDHGetError should be called to determine the nature of the problem. If either NumBytes or OptionFlag is invalid, a system halt occurs.