Home |
Function RTFRawGetDiskGeometry Function RTFRawCallAuxDriverFunction |
Function RTFRawCallAuxDriverFunctionRTFRawCallAuxDriverFunction can be used to call auxiliary disk device driver functions under the control of RTFiles-32's semaphore protection: typedef int (__cdecl * RTFAuxDriverFunction)(void * DriveData, void * Parameters); int RTFRawCallAuxDriverFunction(int DeviceIndex, RTFAuxDriverFunction Function, void * Parameters); RTFRawCallAuxDriverFunction will lock the referenced device's semaphore lock, initialize its internal exception handling (enabling it to catch exception which might be raised by Function), calls Function with parameter Parameters, and then releases the device's semaphore lock. The value returned by Function is then returned to the called of RTFRawCallAuxDriverFunction. As an example, functions RTFDrvFlashCompact and RTFDrvFlashCompact use RTFRawCallAuxDriverFunction internally. Function RTFRawDeviceIoControl
|