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

# SafeArrayPtrOfIndex(3w)

## NAME

**SafeArrayPtrOfIndex** (OLEAUT32.148)

## SYNOPSIS

HRESULT SafeArrayPtrOfIndex\
  (\
   SAFEARRAY\* *psa*,\
   LONG\*      *rgIndices*,\
   void\*\*     *ppvData*\
  )

## DESCRIPTION

Get the address of an item in a SafeArray.

## PARAMS

*psa* **\[In\]**  Array to get the items address from.

*rgIndices* **\[In\]**  Index of the item in the array.

*ppvData* **\[Out\]**  Destination for item address.

## RETURNS

**Success:** **S\_OK**. *ppvData* contains a pointer to the item.

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

## NOTES

This function does not lock the array.

## NOTES

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

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
