DPA_InsertPtr function

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

Inserts a new item at a specified position in a dynamic pointer array (DPA). If neccessary, the DPA expands to accommodate the new item.

Syntax


int WINAPI DPA_InsertPtr(
   HDPA pdpa,
   int  index,
   void *p
);

Parameters

pdpa

Type: HDPA

A handle to a DPA.

index

Type: int

Tbe position where new item is to be inserted.

p

Type: void*

A pointer to the item that is to be inserted.

Return value

Type: int

Returns the index of the new item or -1, if the insertion fails.

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: