DPA_GetPtrIndex function (dpa_dsa.h)

[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 DPA_GetPtrIndex(
  [in] HDPA       hdpa,
  [in] const void *p
);

Parameters

[in] hdpa

Type: HDPA

A handle to an existing DPA.

[in] p

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]
Target Platform Windows
Header dpa_dsa.h
DLL Comctl32.dll (version 4.0 or later)
API set ext-ms-win-shell-comctl32-da-l1-1-0 (introduced in Windows 10, version 10.0.14393)