GetSaveFileName function Null safety comdlg32

int GetSaveFileName(
  1. Pointer<OPENFILENAME> param0
)

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> param0) {
  final _GetSaveFileName = _comdlg32.lookupFunction<
      Int32 Function(Pointer<OPENFILENAME> param0),
      int Function(Pointer<OPENFILENAME> param0)>('GetSaveFileNameW');
  return _GetSaveFileName(param0);
}