Home |
Function RTFGetCurrentDir |
Function RTFGetCurrentDirRTFGetCurrentDir returns the current drive and directory: int RTFGetCurrentDir(const char * DirName, UINT MaxLength); ParametersDirNamePointer to a string buffer to receive the full path of the current directory, including a drive letter. MaxLengthSpecifies the size in bytes of the buffer passed in DirName. It is recommended to use a buffer with RTF_MAX_PATH (260) bytes length. If the buffer is too small to hold the current path, the function fails. return valueIf the function succeeds, the return value is RTF_NO_ERROR and the current path has been copied to the specified buffer. If the function fails, the return value is a negative error code.
|