| Home | Table of Contents | Please view with Internet Explorer (version 5.00 or higher) and enable scripting. For reasons, see Browsing This Web Site. |
This function retrieves the size of a DPA.
ULONGLONG DPA_GetSize (HDPA pdpa);
The pdpa argument provides a handle to the DPA.
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.
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.
The DPA_GetSize function is exported by name from COMCTL32.DLL in version 6.10 and higher.