The GetTempPath function retrieves the path of the directory designated for temporary files.
DWORD GetTempPath( DWORD nBufferLength, LPSTR lpBuffer )
If the function succeeds, the return value is the length, not including the terminating null character.
If the return value is greater than nBufferLength, the return value is the size of the buffer required to hold the path.
If the function fails, the return value is zero.
EX1
int GetTempPath_ex1() { char sztemp[MAXFULLPATH]; DWORD aa = GetTempPath(MAXFULLPATH, sztemp); out_str(sztemp); return 1; }
GetTempFileName
origin.h