Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SysStringByteLen function

Returns the length (in bytes) of a BSTR.

Syntax


UINT SysStringByteLen(
  _In_opt_ BSTR bstr
);

Parameters

bstr [in, optional]

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

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

See also

String Manipulation Functions

 

 

Show:
© 2016 Microsoft