DPA_SetPtr function (dpa_dsa.h)

[DPA_SetPtr is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Assigns a value to an item in a dynamic pointer array (DPA).

Syntax

BOOL DPA_SetPtr(
  HDPA hdpa,
  int  i,
  void *p
);

Parameters

hdpa

Type: HDPA

A handle to a DPA.

i

Type: int

The index of the item in the DPA.

Note  If the index is beyond the current size of the DPA, the DPA expands to accommodate it. You do not need to assign items contiguously.
 

p

Type: void*

A pointer to the value to assign to the specified DPA item.

Return value

Type: BOOL

Returns TRUE if successful, or FALSE otherwise.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header dpa_dsa.h
Library Comctl32.lib
DLL ComCtl32.dll
API set ext-ms-win-shell-comctl32-da-l1-1-0 (introduced in Windows 10, version 10.0.14393)