INtime SDK Help
GetRtTempPath

Returns the path of the current temporary folder.

DWORD GetRtTempPath(
    LPSTR path,
    DWORD len
);

Parameters

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

Comments

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.

Requirements

Versions Defined in Include Link to
INtime 5.2 intime/rt/include/rtbase.h rt.h rt.lib