Group: Shell Functions - Library: shell32
Creating a unique filename based on existing filename
BOOL PathYetAnotherMakeUniqueName(
LPWSTR pszUniqueName,
LPCWSTR pszPath,
LPCWSTR pszShort,
LPCWSTR pszFileSpec
); DECLARE INTEGER PathYetAnotherMakeUniqueName IN shell32;
STRING @ pszUniqueName,;
STRING pszPath,;
STRING pszShort,;
STRING pszFileSpec pszUniqueName [out] A string buffer that receives a NULL-terminated Unicode string that contains the fully qualified path of the unique file name.
pszPath [in] A NULL-terminated Unicode string containing the fully qualified path of folder that will contain the new file.
pszShort [in] A NULL-terminated Unicode string containing the short file name that the unique name will be based on.
pszFileSpec [in] A NULL-terminated Unicode string containing the long file name that the unique name will be based on.
Returns TRUE if a unique name was successfully created, FALSE if not.
See also PathMakeUniqueName function.
Home