WindowsPromoteStringBuffer function Null safety winrt

int WindowsPromoteStringBuffer(
  1. int bufferHandle,
  2. Pointer<IntPtr> string
)

Creates an HSTRING from the specified HSTRING_BUFFER.

HRESULT WindowsPromoteStringBuffer(
  HSTRING_BUFFER bufferHandle,
  HSTRING        *string
);

Implementation

int WindowsPromoteStringBuffer(int bufferHandle, Pointer<IntPtr> string) {
  final _WindowsPromoteStringBuffer =
      _api_ms_win_core_winrt_string_l1_1_0.lookupFunction<
          Int32 Function(IntPtr bufferHandle, Pointer<IntPtr> string),
          int Function(int bufferHandle,
              Pointer<IntPtr> string)>('WindowsPromoteStringBuffer');
  return _WindowsPromoteStringBuffer(bufferHandle, string);
}