public static extern Int32 PathCommonPrefix(
[In] String pszFile1,
[In] String pszFile2,
[Out] StringBuilder pszPath
);
const Int32 MAX_PATH = 260;
Declare Function PathCommonPrefix Lib "shlwapi.dll" (TODO) As TODO
None.
None.
Please add some!
StringBuilder str = new StringBuilder(MAX_PATH);
Int32 nRet = PathCommonPrefix(
@"C:\win\desktop\temp.txt",
@"c:\win\tray\sample.txt",
str
);
// Result: nRet == 6 && str.ToString() == @"C:\win"
Do you know one? Please contribute it!