[DllImport("shlwapi.dll", CharSet=CharSet.Auto)]
public static extern int PathCompactPathEx(StringBuilder pszOut, string szPath, int cchMax, int dwFlags);
VB Signature:
Declare Function PathCompactPathEx Lib "shlwapi.dll" (TODO) As TODO
Truncates a file path to fit within a given pixel width by replacing path components with ellipses. The path parameter must be preallocated to MAX_PATH length in order to avoid a buffer overrun / corruption.
2/8/2012 6:14:00 AM - johnbell149@gmail.com-202.74.138.1