FindText function Null safety comdlg32

int FindText (
  1. Pointer<FINDREPLACE> Arg1
)

Creates a system-defined modeless Find dialog box that lets the user specify a string to search for and options to use when searching for text in a document.

HWND FindTextW(
  LPFINDREPLACEW Arg1
);

Implementation

int FindText(Pointer<FINDREPLACE> Arg1) {
  final _FindText = _comdlg32.lookupFunction<
      IntPtr Function(Pointer<FINDREPLACE> Arg1),
      int Function(Pointer<FINDREPLACE> Arg1)>('FindTextW');
  return _FindText(Arg1);
}