## Virtual Device Driver Reference for OS/2

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

### VDHAllocDOSMem Return Value - rc

rc (PVOID) - returns

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

Failure If the function fails, it returns 0. VDHGetError should be called to determine the nature of the problem. If BlockSize = 0, or if the function is called in an invalid context (see "Context Issues" below), a system halt occurs.