[DllImport("shlwapi.dll", CharSet=CharSet.Auto)]
static extern bool PathRemoveFileSpec([In,Out] StringBuilder pszPath);
Declare Function PathRemoveFileSpec Lib "shlwapi.dll" (TODO) As TODO
None.
None.
Please add some!
StringBuilder str = new StringBuilder(@"C:\TEST\sample.txt");
bool bRet = PathRemoveFileSpec(str);
// Result: bRet == true && str.ToString() == @"C:\TEST"
Do you know one? Please contribute it!