GetSaveFileName function Null safety comdlg32

int GetSaveFileName (
  1. Pointer<OPENFILENAME> Arg1
)

Creates a Save dialog box that lets the user specify the drive, directory, and name of a file to save.

BOOL GetSaveFileNameW(
  LPOPENFILENAMEW Arg1
);

Implementation

int GetSaveFileName(Pointer<OPENFILENAME> Arg1) {
  final _GetSaveFileName = _comdlg32.lookupFunction<
      Int32 Function(Pointer<OPENFILENAME> Arg1),
      int Function(Pointer<OPENFILENAME> Arg1)>('GetSaveFileNameW');
  return _GetSaveFileName(Arg1);
}