WindowsPreallocateStringBuffer function winrt

int WindowsPreallocateStringBuffer(
  1. int length,
  2. Pointer<Pointer<Uint16>> charBuffer,
  3. Pointer<IntPtr> bufferHandle
)

Allocates a mutable character buffer for use in HSTRING creation.

HRESULT WindowsPreallocateStringBuffer(
  UINT32         length,
  WCHAR          **charBuffer,
  HSTRING_BUFFER *bufferHandle
);

Implementation

int WindowsPreallocateStringBuffer(int length,
        Pointer<Pointer<Uint16>> charBuffer, Pointer<IntPtr> bufferHandle) =>
    _WindowsPreallocateStringBuffer(length, charBuffer, bufferHandle);