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

# SafeArrayPutElement(3w)

## NAME

**SafeArrayPutElement** (OLEAUT32.26)

## SYNOPSIS

HRESULT SafeArrayPutElement\
  (\
   SAFEARRAY\* *psa*,\
   LONG\*      *rgIndices*,\
   void\*      *pvData*\
  )

## DESCRIPTION

Put an item into a SafeArray.

## PARAMS

*psa* **\[In\]**  SafeArray to insert into.

*rgIndices* **\[In\]**  Indices to insert at.

*pvData* **\[In\]**  Data to insert.

## RETURNS

**Success:** **S\_OK**. The item is inserted

**Failure:** An **HRESULT** error code indicating the error.

## NOTES

See **[SafeArray(3w)](/SafeArray/3w.md)**.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/safearray.c"**.

Debug channel **"variant"**.
