DPA_GetSize

This function retrieves the size of a DPA.

Declaration

ULONGLONG DPA_GetSize (HDPA pdpa);

Parameters

The pdpa argument provides a handle to the DPA.

Return Value

If successful, the function returns the size of the DPA, in bytes, allowing for both the DPA structure and the current capacity of the pointer array. The function returns zero for failure.

Behaviour

If pdpa is NULL, the function fails. Otherwise, pdpa is assumed to address a DPA structure followed by a pointer array in one heap block. The function returns the size of this heap block, recalculated as the size of the DPA plus the number of pointers recorded in the cpCapacity member.

Availability

The DPA_GetSize function is exported by name from COMCTL32.DLL in version 6.10 and higher.