SysReAllocStringLen function oleaut32

int SysReAllocStringLen(
  1. Pointer<Pointer<Utf16>> pbstr,
  2. PCWSTR? psz,
  3. int len
)

Creates a new BSTR containing a specified number of characters from an old BSTR, and frees the old BSTR.

To learn more, see learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-sysreallocstringlen.

Implementation

@pragma('vm:prefer-inline')
int SysReAllocStringLen(Pointer<Pointer<Utf16>> pbstr, PCWSTR? psz, int len) =>
    _SysReAllocStringLen(pbstr, psz ?? nullptr, len);