WindowsStringHasEmbeddedNull function Null safety winrt

int WindowsStringHasEmbeddedNull(
  1. int string,
  2. Pointer<Int32> hasEmbedNull
)

Indicates whether the specified string has embedded null characters.

HRESULT WindowsStringHasEmbeddedNull(
  HSTRING string,
  BOOL    *hasEmbedNull);

Implementation

int WindowsStringHasEmbeddedNull(int string, Pointer<Int32> hasEmbedNull) {
  final _WindowsStringHasEmbeddedNull =
      _api_ms_win_core_winrt_string_l1_1_0.lookupFunction<
          Int32 Function(IntPtr string, Pointer<Int32> hasEmbedNull),
          int Function(int string,
              Pointer<Int32> hasEmbedNull)>('WindowsStringHasEmbeddedNull');
  return _WindowsStringHasEmbeddedNull(string, hasEmbedNull);
}