file_name[STR_PATH], selected = show_file_dialog (&_, file_name, &dlg),
{
  dlg = {
          path : current_path,
          file_mask : files_to_select,
          frame_window : frame_window,
          file_dialog_type : FDLG_OPEN
        }
};

if (selected == MB_OPEN)
{
  ...
}
