WindowsTrimStringStart function Null safety winrt

int WindowsTrimStringStart(
  1. int string,
  2. int trimString,
  3. Pointer<IntPtr> newString
)

Removes all leading occurrences of a specified set of characters from the source string.

HRESULT WindowsTrimStringStart(
  HSTRING string,
  HSTRING trimString,
  HSTRING *newString
);

Implementation

int WindowsTrimStringStart(
    int string, int trimString, Pointer<IntPtr> newString) {
  final _WindowsTrimStringStart =
      _api_ms_win_core_winrt_string_l1_1_0.lookupFunction<
          Int32 Function(
              IntPtr string, IntPtr trimString, Pointer<IntPtr> newString),
          int Function(int string, int trimString,
              Pointer<IntPtr> newString)>('WindowsTrimStringStart');
  return _WindowsTrimStringStart(string, trimString, newString);
}