Home |
Function MountDevice |
Function MountDeviceDriver function MountDevice is called by RTFiles-32 when a device is mounted or remounted: int RTFAPI MountDevice(void * DriveData, int DeviceNumber, int DeviceType, DWORD Flags); ParametersDriveDataPointer to the DeviceData found in the device list for the device. DeviceNumberDeviceNumber found in the device list for the device. DeviceTypeDeviceType found in the device list for the device. FlagsFlags found in the device list for the device. return valueIf the function succeeds, it returns the device's sector size. If it fails, the return value is a negative error code. For removable disks, please see below for details. This function may be called several times, in particular for removable devices. This function should perform all necessary initialization. For removable disk devices, the return code of this function should be selected as follows:
Parameter Flags may contain additional device flag RTF_DEVICE_NO_2K_BUFFERS. If set, and the driver is able to determine that the sector size is 2048, it should return RTF_DRIVE_NOT_FOUND, even if the device is removable or present.
|