Allocates a block of memory from a memory pool that was previously initialized by DosSubSetMem.

#define INCL_DOSMEMMGR
#include <os2.h>

PVOID     pbBase;  /*  The offset to the memory pool from which the block should be allocated. */
PPVOID    ppb;     /*  A pointer to a PVOID in which the offset of the allocated memory block is returned. */
ULONG     cb;      /*  The size, in bytes, of the memory block requested. */
APIRET    ulrc;    /*  Return Code. */

ulrc = DosSubAllocMem(pbBase, ppb, cb);


[Back] [Next]