Home |
Function USBDiskMediaChanged |
Function USBDiskMediaChangedUSBDiskMediaChanged checks if the medium in a disk drive has been removed or changed: int USBDiskMediaChanged(RTUDiskData * DeviceData); ParametersDevicePointer to an RTUDiskData structure associated with the desired disk (see USBDiskInitDevice). return valueRTU_SUCCESS or a negative class specific error code or a standard error code on failure. The function returns RTU_SUCCESS if the disk is accessible and has not changed since the last call to USBDiskMountDevice. A call to USBDiskMountDevice is required when this function returns anything other than RTU_SUCCESS before further I/O is possible. It is not mandatory to use this function. Functions USBDiskReadSectors, USBDiskWriteSectors, and USBDiskGetSize will return the same error code as this function when the medium has been removed.
|