GetOpenFileName function Null safety comdlg32

int GetOpenFileName (
  1. Pointer<OPENFILENAME> Arg1
)

Creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to be opened.

BOOL GetOpenFileNameW(
  LPOPENFILENAMEW Arg1
);

Implementation

int GetOpenFileName(Pointer<OPENFILENAME> Arg1) {
  final _GetOpenFileName = _comdlg32.lookupFunction<
      Int32 Function(Pointer<OPENFILENAME> Arg1),
      int Function(Pointer<OPENFILENAME> Arg1)>('GetOpenFileNameW');
  return _GetOpenFileName(Arg1);
}