SysStringByteLen Function
Returns the length (in bytes) of a BSTR. Not valid for 16-bit systems.
UINT SysStringByteLen( BSTR bstr );
The returned value may be different from strlen(bstr) if the BSTR contains embedded null characters. This function always returns the number of bytes specified in the len parameter of the SysAllocStringByteLen function used to allocate the BSTR.
Show: