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

# SafeArrayGetDim(3w)

## NAME

**SafeArrayGetDim** (OLEAUT32.17)

## SYNOPSIS

UINT SafeArrayGetDim\
  (\
   SAFEARRAY\* *psa*\
  )

## DESCRIPTION

Get the number of dimensions in a SafeArray.

## PARAMS

*psa* **\[In\]**  Array to get the dimensions of.

## RETURNS

The number of array dimensions in *psa*, or **0** if *psa* is **NULL**.

## NOTES

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

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
