Allocates and returns an absolute a unique file name based on UUID and that is to be located in the system temporary directory.
- Template Parameters
-
- Parameters
-
[in] | lpszExtension | is an optional string specifying an extension for the file name. If the parameter is NULL the file name is generated without extension. |
- Returns
- On success the function returns an absolute path to a unique file that is to be located in the temporary directory returned by the AllocateTempPath function. The file itself is not created, but only its name, which is based on UUID is returned. When the returned value is no longer needed, free the returned buffer using the FreeString, SecureFreeString or any other free function of the chsvmem.h header. If the function fails it returns NULL. Use GetLastChsvError to get extended error information.
- See also
- AllocateTempPath;
FreeString;
AllocateString;
AllocateUniqueString;
AllocateAndFormatString.