PathMakeUniqueName
[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]
public static extern void PathMakeUniqueName(
StringBuilder pszUniqueName,
uint cchMax,
string pszTemplate,
string pszLongPlate,
string pszDir
);
Microsoft documentation: Link
Last updated