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.

NOTES

Binary search taken from R.Sedgewick "Algorithms in C"! Function is NOT tested! If something goes wrong, blame HIM not ME! (Eric Kohl)

IMPLEMENTATION

Exported by ordinal only. Use GetProcAddress to obtain a pointer to the function.

Implemented in "dlls/comctl32/dpa.c". source.winehq.org/source/dlls/comctl32/dpa.c

Debug channel "dpa".


Copyright © 2005 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Aug 2005.