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 total amount of memory currently allocated for the DPA, in bytes. The function returns zero for failure.

Behaviour

If pdpa is NULL, the function fails. Otherwise, the function returns the size of the DPA structure plus the amount of memory needed for 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. The implementation is built into a statically linked library and thence is also exported from the Internet Explorer module IERTUTIL.DLL as ordinal 83 in version 7.0 and higher.