SysAllocStringByteLen function oleaut32
Takes an ANSI string as input, and returns a BSTR that contains an ANSI string.
Does not perform any ANSI-to-Unicode translation.
To learn more, see learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-sysallocstringbytelen.
Implementation
@pragma('vm:prefer-inline')
BSTR SysAllocStringByteLen(PCSTR? psz, int len) =>
BSTR(_SysAllocStringByteLen(psz ?? nullptr, len));