SysStringByteLen function Null safety oleaut32

int SysStringByteLen(
  1. Pointer<Utf16> bstr
)

Returns the length (in bytes) of a BSTR.

UINT SysStringByteLen(
  BSTR bstr
);

Implementation

int SysStringByteLen(Pointer<Utf16> bstr) {
  final _SysStringByteLen = _oleaut32.lookupFunction<
      Uint32 Function(Pointer<Utf16> bstr),
      int Function(Pointer<Utf16> bstr)>('SysStringByteLen');
  return _SysStringByteLen(bstr);
}