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

# SafeArrayGetVartype(3w)

## NAME

**SafeArrayGetVartype** (OLEAUT32.77)

## SYNOPSIS

HRESULT SafeArrayGetVartype\
  (\
   SAFEARRAY\* *psa*,\
   VARTYPE\*   *pvt*\
  )

## DESCRIPTION

Get the type of the items in a SafeArray.

## PARAMS

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

*pvt* **\[Out\]**  Destination for the type.

## RETURNS

**Success:** **S\_OK**. *pvt* contains the type of the items.

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