@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Compares two paths to determine if they have a common root component. !!!!C# Signature: [DllImport("shlwapi.dll", CharSet=CharSet.Auto)] static extern bool PathIsSameRoot([In] String pszPath1, [In] String pszPath2); !!!!VB Signature: Declare Function PathIsSameRoot Lib "shlwapi.dll" (TODO) As TODO !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: bool bRet; bRet = PathIsSameRoot(@"C:\path1\one", @"C:\path2\two"); // Result: bRet == true bRet = PathIsSameRoot(@"C:\path1\one", @"E:\acme\three"); // Result: bRet == false !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: MSDN http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pathremovefilespec.asp
Edit shlwapi.PathIsSam...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.