VectorFromBstr

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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


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

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.

Returns the HRESULT values shown in the following table.

Value Description

S_OK

Success.

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

BSTR is NULL.

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

Headeroleauto.h
Libraryoleaut32.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: