Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
2.2.5 BSTR

2.2.5 BSTR

A BSTR is a pointer to a null-terminated character string in which the string length is stored with the string. Because the length is stored with the string, BSTR variables can contain embedded null characters. For example:

 [4 bytes (length prefix)], 
 wchar_t[length], [\0]

This type is declared as follows:

 typedef WCHAR* BSTR;
Show:
© 2015 Microsoft