BSTR (Compact 2013)

3/26/2014

A binary string (BSTR) data type stores a pointer to a fixed-length, wide-character Unicode string.

Syntax

typedef OLECHAR __RPC_FAR *BSTR;

Remarks

In Windows Embedded Compact, a BSTR string is an OLE wide character (OLECHAR), double-byte text string that stores characters encoded in Unicode format.

A BSTR string does not require a null-terminating character.

To initialize a BSTR string with a text string value, call SysAllocString.

To update a pointer to a BSTR string and provide it with a new value that has a different amount of characters, call SysReAllocString.

Requirements

Header

wtypes.h

See Also

Reference

Storage Structures
SysAllocString
SysFreeString
SysReAllocString
SysAllocStringLen
SysReAllocStringLen
SysStringLen