INtime SDK Help

Returns the path of the current temporary folder.

DWORD GetRtTempPath(
    LPSTR path,
    DWORD len


Buffer where the temporary path will be returned to.
Length of buffer supplied.


The call looks for the environment variable "TMP" and returns its value. If that value is not present it next tries the variable "TEMP".

Return Values

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