GetFileOpenName Initdir parameter behavior

Windows 10/11:

  1. If initdir has the same value that was selected in the first instance of the application's Open or Save As dialog box, then it uses the path the user selected most recently as the initial directory.

  2. If filename contains a path, that path is the initial directory.

  3. If initdir is not NULL, it specifies the initial directory.

  4. If initdir is NULL and the current directory contains any files of the specified filter types, the initial directory is the current directory.

  5. Otherwise, the initial directory is the personal files directory of the current user.

  6. If no other conditions are met, the initial directory is the Desktop folder.