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:
Open both files with CreateFile, call GetFileInformationByHandle for both, and compare dwVolumeSerialNumber, nFileIndexLow, nFileIndexHigh. If all three are equal they both point to the same file:
CreateFile
GetFileInformationByHandle
dwVolumeSerialNumber
nFileIndexLow
nFileIndexHigh
GetFileInformationByHandle function
BY_HANDLE_FILE_INFORMATION Structure