SysReAllocStringLen function Null safety oleaut32

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

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

INT SysReAllocStringLen(
  BSTR          *pbstr,
  const OLECHAR *psz,
  UINT  len
);

Implementation

int SysReAllocStringLen(Pointer<Pointer> pbstr, Pointer<Utf16> psz, int len) {
  final _SysReAllocStringLen = _oleaut32.lookupFunction<
      Int32 Function(Pointer<Pointer> pbstr, Pointer<Utf16> psz, Uint32 len),
      int Function(Pointer<Pointer> pbstr, Pointer<Utf16> psz,
          int len)>('SysReAllocStringLen');
  return _SysReAllocStringLen(pbstr, psz, len);
}