INtime SDK Help
SetCurrentRtThreadDirectory
INtime SDK v7.1 > About INtime > INtime Kernel > Files > SetCurrentRtThreadDirectory

Changes the current directory for the current thread.

BOOLEAN SetCurrentRtThreadDirectory(
    LPSTR lpPathName
);

Parameters

lpPathName
A pointer to the path of the new current directory. This parameter may specify a relative path or a full path. In either case, the full path of the specified directory is calculated and stored as the current directory. The result must be a valid directory.

Remarks

The string must not exceed MAX_PATH characters, including the terminating null character. 

Each thread has a single current directory.

Return values

    TRUE on success. FALSE on failure. The error status may be returned by calling GetLastRtError.

Requirements

Versions Defined in Include Link to
INtime 6.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also

C library