---
name: "DPA_Search"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/DPA_Search"
---

# DPA\_Search(3w)

## NAME

**DPA\_Search** (COMCTL32.339)

## SYNOPSIS

INT DPA\_Search\
  (\
   const HDPA    *hdpa*,\
   LPVOID        *pFind*,\
   INT           *nStart*,\
   PFNDPACOMPARE *pfnCompare*,\
   LPARAM        *lParam*,\
   UINT          *uOptions*\
  )

## DESCRIPTION

Searches a pointer array for a specified pointer.

## PARAMS

*hdpa* **\[In\]**  handle (pointer) to the pointer array.

*pFind* **\[In\]**  pointer to search for.

*nStart* **\[In\]**  start index.

*pfnCompare* **\[In\]**  pointer to the compare function.

*lParam* **\[In\]**  user defined value (3rd parameter of compare function).

*uOptions* **\[In\]**  search options.

## RETURNS

**Success:** index of the pointer in the array.

**Failure:** **-1**

## IMPLEMENTATION

Declared in **"commctrl.h"**.

Implemented in **"dlls/comctl32/dpa.c"**.

Debug channel **"dpa"**.
