Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.45 KB

File metadata and controls

62 lines (43 loc) · 1.45 KB

Home

Function name : PathYetAnotherMakeUniqueName

Group: Shell Functions - Library: shell32


Creates a unique filename based on an existing filename.


Code examples:

Creating a unique filename based on existing filename

Declaration:

BOOL PathYetAnotherMakeUniqueName(
	LPWSTR pszUniqueName,
	LPCWSTR pszPath,
	LPCWSTR pszShort,
	LPCWSTR pszFileSpec
);  

FoxPro declaration:

DECLARE INTEGER PathYetAnotherMakeUniqueName IN shell32;
	STRING @ pszUniqueName,;
	STRING   pszPath,;
	STRING   pszShort,;
	STRING   pszFileSpec  

Parameters:

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.


Return value:

Returns TRUE if a unique name was successfully created, FALSE if not.


Comments:

See also PathMakeUniqueName function.