DPA_GetPtrIndex function

[DPA_GetPtrIndex is available through Windows XP with Service Pack 2 (SP2). It might be altered or unavailable in subsequent versions.]

Gets the index of a matching item found in a dynamic pointer array (DPA).

Syntax


int WINAPI DPA_GetPtrIndex(
  _In_       HDPA hdpa,
  _In_ const void *pvoid
);

Parameters

hdpa [in]

Type: HDPA

A handle to an existing DPA.

pvoid [in]

Type: const void*

A pointer to an item to locate in hdpa.

Return value

Type: int

The index of the item pointed to by pvoid, if found; otherwise, -1.

Remarks

DPA_GetPtrIndex is not exported by name. To use it, you must use GetProcAddress and request ordinal 333 from ComCtl32.dll to obtain a function pointer.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Dpa_dsa.h

DLL

Comctl32.dll (version 4.0 or later)

 

 

Show: