Home |
Function RTFResetDisk Function RTFCheckDiskBufferSize Function RTFCreateMasterBootRecord |
Function RTFResetDiskRTFResetDisk unmounts a single or all mounted physical disk devices: int RTFResetDisk(const char * DriveName); ParametersDriveNameThe root directory path name of a logical drive to unmount. If this parameter is NULL, all devices are unmounted; otherwise, only the device hosting the specified drive is unmounted. return valueIf the function succeeds, the return value is RTF_NO_ERROR. If the function fails, the return value is a negative error code. Note that all files on the respective drive(s) must be closed for this function to succeed. If any files are open, RTF_ACCESS_DENIED is returned. RTFCloseAll can be used to close all files. Unmounting a device makes RTFiles-32 discard all information it has about a device. The next time any drive on the device is accessed, RTFiles-32 will reread the drive's boot sector and reinitialize all internal data structures for this drive. Please note that this function affects drive letter assignment only if parameter DriveName is NULL. In that case, the next disk I/O function will rescan all partition tables, which may cause driver letters to change.
|