DSA_Create function

[DSA_Create is available for use in the operating

systems specified in the Requirements section. It may be altered or unavailable in

subsequent versions.]

Creates a dynamic structure array (DSA).


HDSA DSA_Create(
  int cbItem,
  int cItemGrow



Type: int

The size, in bytes, of the item.


Type: int

The number of items by which the array should be incremented, if the DSA needs to be enlarged.

Return value

Type: HDSA

Returns a handle to a DSA if successful, or NULL if the creation fails.


Unlike a dynamic pointer array (DPA), a DSA can contain elements of any size. This allows structures to be stored directly in the array.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header dpa_dsa.h
Library Comctl32.lib
DLL ComCtl32.dll