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

# SafeArrayCreateEx(3w)

## NAME

**SafeArrayCreateEx** (OLEAUT32.15)

## SYNOPSIS

SAFEARRAY\* SafeArrayCreateEx\
  (\
   VARTYPE         *vt*,\
   UINT            *cDims*,\
   SAFEARRAYBOUND\* *rgsabound*,\
   LPVOID          *pvExtra*\
  )

## DESCRIPTION

Create a new SafeArray.

## PARAMS

*vt* **\[In\]**  Type to store in the safe array.

*cDims* **\[In\]**  Number of array dimensions.

*rgsabound* **\[In\]**  Bounds of the array dimensions.

*pvExtra* **\[In\]**  Extra data.

## RETURNS

**Success:** A pointer to a new array object.

**Failure:** **NULL**, if any parameter is invalid or memory allocation fails.

## NOTES

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

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
