Windows Dev Center

DSA_AppendItem macro

Appends a new item to the end of a dynamic structure array (DSA).

Syntax


int DSA_AppendItem(
  [in] HDSA pdsa,
  [invoid *pItem
);

Parameters

pdsa [in]

A handle to the DSA in which to insert the item.

pItem [in]

A pointer to the item that is to be inserted.

Return value

Returns the index of the new item if the append action succeeds, or -1 if the append action fails.

Remarks

Note  This macro wraps the DSA_InsertItem function.

The actual data pointed to by pItem is copied into the DSA. Subsequent actions performed on that item do not affect the original copy.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft