INtime SDK Help
SetCurrentRtThreadDirectory
INtime SDK v6 > 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

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To get extended error information, call GetLastRtError.

Requirements

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

C library