Home |
Function USBDiskMountDevice |
Function USBDiskMountDeviceUSBDiskMountDevice must be called by a file system before sector I/O is possible. USBDiskMountDevice must also be called to reinitialize a USB disk device when the medium has been changed or a device had non-recoverable errors: int USBDiskMountDevice(RTUDiskData * DeviceData); ParametersDevicePointer to an RTUDiskData structure associated with the desired disk (see USBDiskInitDevice). return valueThe sector size of the disk or a negative class specific error code or a standard error code on failure. The returned value will typically be 512 for disk and floppy devices and 2048 for CD-ROM and DVDs. Passing a virgin (all zero) or unmounted RTUDiskData structure is allowed and will return value RTU_DISCONNECTED. For any disk, functions USBDiskReadSectors, USBDiskWriteSectors, USBDiskMediaChanged, USBDiskGetSize, and USBDiskSCSICommand may only be called after USBDiskMountDevice has returned a value > 0.
|