## Printer Device Driver

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

### GplMemoryGetObjectSize

Description

This function returns the size of a memory object allocated by GplMemoryAlloc.

Format

    LONG APIENTRY GplMemoryGetObjectSize( PVOID  pData );

Parameter

pData (PVOID) Pointer to object.

Returns

Success Size of memory object.

(LONG) lsize

Failure 0, no size found for memory object. WinGetLastError will return PMERR_INVALID_PARAMETERS (meaning pData was invalid or NULL).