Reference

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).

IMPLEMENTATION

Declared in "oleauto.h".

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

Debug channel "variant".

History