Home |
Function RTFDrvIDECDTray |
Function RTFDrvIDECDTrayThis function is obsolete. Please use RTFDeviceIoControl instead. This function can be used to enquire the state of and open (eject) or close a CD-ROM or DVD drive on an IDE/SATA interface: int RTFDrvIDECDTray(int DeviceIndex, int Function); ParametersDeviceIndexDevice list index of the device on which the requested action it to be performed. RTFGetDeviceIndex can be used to enquire this index. FunctionOne of these values depending on the desired function:
return valueIf the function succeeds and parameter Function is set to RTF_CD_ENQUIRE, RTF_CD_OPEN is returned if the drive is open and RTF_CD_CLOSE if the drive is closed. Functions RTF_CD_OPEN and RTF_CD_CLOSE return RTF_NO_ERROR on success. On failure, a negative error code is returned.
|