GetTempPathThe GetTempPath function retrieves the path of the directory designated for temporary files. DWORD GetTempPath( DWORD nBufferLength, LPTSTR lpBuffer );Parameters nBufferLength [in] Size of the string buffer identified by lpBuffer, in TCHARs. lpBuffer [out] Pointer to a string buffer that receives the null-terminated string specifying the temporary file path. The returned string ends with a backslash, for example, C:\TEMP\.
DWORD GetTempPath(
DWORD nBufferLength,
LPTSTR lpBuffer
);Parameters
nBufferLength
[in] Size of the string buffer identified by lpBuffer, in TCHARs.
lpBuffer
[out] Pointer to a string buffer that receives the null-terminated string specifying the temporary file path. The returned string ends with a backslash, for example, C:\TEMP\.
GetTempFileName