## Printer Device Driver

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

### GplMemoryAlloc

Description

This function allocates memory for the user.

Format

    PVOID APIENTRY GplMemoryAlloc( HMCB   hMCB,

                                   ULONG  ulSize );

Parameters

hMCB (HMCB) Handle to memory control block.

ulSize (ULONG) Amount to allocate.

Returns

Success Valid pointer to memory allocated.
Failure NULL.
WinGetLastError() returns one of the following:
PMERR_INV_OR_INCOMPAT_OPTIONS
PMERR_INSUFFICIENT_MEMORY