Returns the path of the current temporary folder.
DWORD GetRtTempPath( LPSTR path, DWORD len );
path
len
The call looks for the environment variable "TMP" and returns its value. If that value is not present it next tries the variable "TEMP".
If the function succeeds, the return value is the number of characters copied to lpBuffer, not including the terminating null character. If the return value is greater than nBufferLength, the return value is the length of the buffer required to hold the path. If the function fails, the return value is zero. To get extended error information, call GetLastRtError.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 5.2 | intime/rt/include/rtbase.h | rt.h | rt.lib |