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

# SafeArrayGetElement(3w)

## NAME

**SafeArrayGetElement** (OLEAUT32.25)

## SYNOPSIS

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

## DESCRIPTION

Get an item from a SafeArray.

## PARAMS

*psa* **\[In\]**  SafeArray to get from.

*rgIndices* **\[In\]**  Indices to get from.

*pvData* **\[Out\]**  Destination for data.

## RETURNS

**Success:** **S\_OK**. The item data is returned in *pvData*.

**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"**.
