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).

Syntax

HDSA DSA_Create(
  int cbItem,
  int cItemGrow
);

Parameters

cbItem

Type: int

The size, in bytes, of the item.

cItemGrow

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.

Remarks

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

Requirements

   
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