SysStringLen function (oleauto.h)
Returns the length of a BSTR.
Syntax
UINT SysStringLen(
[in, optional] BSTR pbstr
);
Parameters
[in, optional] pbstr
A previously allocated string.
Return value
The number of characters 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 characters specified in the cch parameter of the SysAllocStringLen function used to allocate the BSTR.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for