LocalSize

Syntax

WORD LocalSize(hMem)

This function retrieves the current size (in bytes) of the local memory block specified by the hMem parameter.

Parameter Type/Description  

hMem HANDLE Identifies the local memory block.  

Return Value

The return value specifies the size (in bytes) of the specified memory block. It is NULL if the given handle is not valid.

Comments

The actual size of a memory block sometimes is larger than the size requested when the memory was allocated.