Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the length (in bytes) of a BSTR.
Syntax
UINT SysStringByteLen(
[in, optional] BSTR bstr
);
Parameters
[in, optional] bstr
A previously allocated string.
Return value
The number of bytes in bstr, not including the terminating null character. If bstr is null the return value is zero.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |