DPA_Sort function

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

Sorts the items in a Dynamic Pointer Array (DPA).

Syntax


BOOL WINAPI DPA_Sort(
   HDPA          pdpa,
   PFNDPACOMPARE pfnCmp,
   LPARAM        lParam
);

Parameters

pdpa

Type: HDPA

A handle to a DPA.

pfnCmp

Type: PFNDPACOMPARE

A comparison function pointer. See PFNDPACOMPARE for the comparison function prototype.

lParam

Type: LPARAM

An additional parameter to be passed to pfnCmp.

Return value

Type: BOOL

Returns TRUE on success or FALSE on failure.

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: