[DllImport("shlwapi.dll")]
public static extern Int32 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);
Int32 nRet = PathRemoveFileSpec(str);
// Result: nRet != 0 && str.ToString() == @"C:\TEST
Do you know one? Please contribute it!