Gettemppath
Function prototype:DWORD gettemppath ( DWORDCcbuffer, Lptstr Lpszbuffer);
Gettempfilename: generate or create a temporary file
Function prototype:Uint gettempfilename ( LpctstrLppathname, LpctstrLpprefixstring, UintUunique, LptstrLptempfilename);
Parameter: ① directory for saving temporary files
② Name of the new temporary file
③ Name of the new temporary file (the final temporary file name will be combined according to parameters 2 and 3, and parameter 3 will be converted to hexadecimal format ).
If you specifyNumber, A new file name is generated and saved in parameter 4, but no file is created.0, A new file name combining numbers and parameter 2 is randomly generated and the XXX. tmp file is created.
④ Save the new temporary file name. To ensure that the buffer is long enough, set the buffer size to max_path.
The gettempname function is not clear.