---
name: "DSA_InsertItem"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/DSA_InsertItem"
---

# DSA\_InsertItem(3w)

## NAME

**DSA\_InsertItem** (COMCTL32.324)

## SYNOPSIS

INT DSA\_InsertItem\
  (\
   const HDSA *hdsa*,\
   INT        *nIndex*,\
   LPVOID     *pSrc*\
  )

## DESCRIPTION

Inserts an item into the array at the specified index.

## PARAMS

*hdsa* **\[In\]**  pointer to the array control structure.

*nIndex* **\[In\]**  index for the new item.

*pSrc* **\[In\]**  pointer to the element.

## RETURNS

**Success:** position of the new item

**Failure:** **-1**

## IMPLEMENTATION

Declared in **"commctrl.h"**.

Implemented in **"dlls/comctl32/dsa.c"**.

Debug channel **"dsa"**.
