VectorFromBstr (Windows Embedded CE 6.0)

1/6/2010

This function retrieves a vector, assigning each character in the specified stringto an element of the vector.

Syntax

HRESULT VectorFromBstr(
  BSTR bstr, 
  SAFEARRAY FAR* FAR* ppsa 
);

Parameters

  • bstr
    [in] Unicode string to be converted to a vector.
  • ppsa
    [out] On exit, pointer to a one-dimensional safearray that contains the characters in the BSTR.

Return Value

Returns the HRESULT values shown in the following table.

Value Description

S_OK

Success.

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

BSTR is NULL.

Remarks

Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.

Requirements

Header oleauto.h
Library oleaut32.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Automation Functions
BSTR