DSA_SetItem function (dpa_dsa.h)

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

Sets the contents of an element in a dynamic structure array (DSA).

Syntax

BOOL DSA_SetItem(
  [in] HDSA       hdsa,
  [in] int        i,
  [in] const void *pitem
);

Parameters

[in] hdsa

Type: HDSA

A handle to an existing DSA that contains the element.

[in] i

Type: int

The zero-based index of the item to set.

[in] pitem

Type: void*

A pointer to the item that will replace the specified item in the array.

Return value

Type: BOOL

TRUE if successful; otherwise, FALSE.

Remarks

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

Requirements

Requirement Value
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)