Best way to determine if two path reference to same file in Windows?

后端 未结 11 1651
生来不讨喜
生来不讨喜 2020-11-30 11:23

How would I compare 2 strings to determine if they refer to the same path in Win32 using C/C++?

While this will handle a lot of cases it misses some things:

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 11:40

    See this question: Best way to determine if two path reference to same file in C#

    The question is about C#, but the answer is just the Win32 API call GetFileInformationByHandle.

提交回复
热议问题