cas wrote:Backslash is not added because you didn't have it when you called PathRelativePathTo_() in 3rd example ( and you are talking about consistency?)


I was not referring to the 3rd example at all. You might want to read carefully what I actually wrote.
This has nothing got to do with the root directory.cas wrote:and 5th example is root path so there is no need for backslash.
And you unfortunately "forgot" to mention the main point, that is the wrong result which the WinAPI function returns in my first example.
I'd expect you to mention some facts, rather than expressing your personal belief.