https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350
--- Comment #5 from Bill Zissimopoulos <gnu.org at billz dot fastmail.fm> --- (In reply to niXman from comment #4) > > FYI `GetFinalPathNameByHandle` is known to fail on drives that are created > > via `DefineDosDevice` (e.g. via the SUBST command). So I recommend using > > `GetFullPathName` as a fallback if you find that `GetFinalPathNameByHandle` > > fails. > > could you give me a hint, what should I use for `dwFlags` param for > `GetFinalPathNameByHandle()` ? (because for me all the options are > incomprehensible) I would use `FILE_NAME_NORMALIZED` and `VOLUME_NAME_DOS`.