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

# VectorFromBstr(3w)

## NAME

**VectorFromBstr** (OLEAUT32.@)

## SYNOPSIS

HRESULT VectorFromBstr\
  (\
   BSTR        *bstr*,\
   SAFEARRAY\*\* *ppsa*\
  )

## DESCRIPTION

Create a SafeArray Vector from the bytes of a **BSTR**.

## PARAMS

*bstr* **\[In\]**  String to get bytes from.

*ppsa* **\[Out\]**  Destination for the array.

## RETURNS

**Success:** **S\_OK**. *ppsa* contains the strings bytes as a **VT\_UI1** array.

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