DPA_SetPtr function

[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 WINAPI DPA_SetPtr(
   HDPA pdpa,
   int  index,
   void *p
);

Parameters

pdpa

Type: HDPA

A handle to a DPA.

index

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Dpa_dsa.h

Library

Comctl32.lib

DLL

ComCtl32.dll

 

 

Show: