Home |
Function RTFExpandName |
Function RTFExpandNameRTFExpandName will translate an arbitrary file name to a complete absolute path with drive, path, and file name components: int RTFExpandName(char * FileName, UINT MaxLength); ParametersFileNamePointer to a buffer containing the file name to be expanded and to receive the result. The original name is overwritten. MaxLengthSpecifies the size of the buffer pointed to by parameter FileName. return valueIf the function succeeds, the return value is RTF_NO_ERROR and the expanded file name is copied to *FileName. If the function fails, the return value is a negative error code. RTFExpandName will access the drive only to determine the current directory. The function does not check whether the file or any of its parent directories exist.
|