WindowsDeleteStringBuffer function Null safety winrt

int WindowsDeleteStringBuffer(
  1. int bufferHandle
)

Discards a preallocated string buffer if it was not promoted to an HSTRING.

HRESULT WindowsDeleteStringBuffer(
  HSTRING_BUFFER bufferHandle
);

Implementation

int WindowsDeleteStringBuffer(int bufferHandle) {
  final _WindowsDeleteStringBuffer =
      _api_ms_win_core_winrt_string_l1_1_0.lookupFunction<
          Int32 Function(IntPtr bufferHandle),
          int Function(int bufferHandle)>('WindowsDeleteStringBuffer');
  return _WindowsDeleteStringBuffer(bufferHandle);
}