[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] public static extern bool PathCompactPathEx( StringBuilder pszOut, [MarshalAs(UnmanagedType.LPWStr)] string pszSrc, uint cchMax, uint dwFlags );
Microsoft documentation: Link
Last updated 1 year ago