The drive letter is not part of the returned string. The string does not begin with a backslash, and it ends with a byte containing 0x00.

The system provides the length of the returned path-name string in pcbBuf, which does not include the ending null byte. If the pBuf buffer is not large enough to hold the current-directory path string, the system returns the required length, in bytes, for the pBuf buffer in pcbBuf.

For file-system drivers, the case of the current directory is set at the time of creation.

Programs running without the NEWFILES bit set are allowed to issue DosSetCurrentDir for a directory that is not in the 8.3 file-name format.

An application must issue DosQuerySysInfo to determine the maximum path length supported by the operating system. The returned value should be used to dynamically allocate buffers that are to be used to store paths.


[Back] [Next]