DPA_Grow function

Changes the number of pointers in a dynamic pointer array (DPA).

Syntax


BOOL DPA_Grow(
  _In_ HDPA hdpa,
  _In_ int  cp
);

Parameters

hdpa [in]

Type: HDPA

A handle to an existing DPA.

cp [in]

Type: int

The number of pointers desired in the DPA.

Return value

Type: BOOL

Returns TRUE if successful, or FALSE otherwise.

Remarks

If cp is less than the number of pointers already in the DPA, the DPA is left unchanged. If cp is greater than the number of pointers in the DPA, the added pointers are initialized to NULL.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dpa_dsa.h

DLL

Comctl32.dll

 

 

Show: