GetOpenFileName function Null safety comdlg32

int GetOpenFileName(
  1. Pointer<OPENFILENAME> param0
)

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