ReplaceText function Null safety comdlg32

int ReplaceText (
  1. Pointer<FINDREPLACE> Arg1
)

Creates a system-defined modeless dialog box that lets the user specify a string to search for and a replacement string, as well as options to control the find and replace operations.

HWND ReplaceTextW(
  LPFINDREPLACEW Arg1
);

Implementation

int ReplaceText(Pointer<FINDREPLACE> Arg1) {
  final _ReplaceText = _comdlg32.lookupFunction<
      IntPtr Function(Pointer<FINDREPLACE> Arg1),
      int Function(Pointer<FINDREPLACE> Arg1)>('ReplaceTextW');
  return _ReplaceText(Arg1);
}