[DllImport("shlwapi.dll", CharSet=CharSet.Auto)]
static extern bool PathIsSameRoot([In] String pszPath1, [In] String pszPath2);
Declare Function PathIsSameRoot Lib "shlwapi.dll" (TODO) As TODO
None.
None.
Please add some!
bool bRet;
bRet = PathIsSameRoot(@"C:\path1\one", @"C:\path2\two");
// Result: bRet == true
bRet = PathIsSameRoot(@"C:\path1\one", @"E:\acme\three");
// Result: bRet == false
Do you know one? Please contribute it!