Home |
Function RTFDrvFlashInfo |
Function RTFDrvFlashInfoFunction RTFDrvFlashInfo can be used to gather statistics about a flash disk: typedef struct { DWORD Blocks; DWORD BlockSize; DWORD EraseCountMax; DWORD EraseCountMin; DWORD EraseCountAverage; DWORD SectorsInUse; DWORD SectorsDeleted; DWORD SectorsAvail; } RTFFlashInfo; int RTFDrvFlashInfo(const RTFDrvFlashData * D, RTFFlashInfo * FlashInfo); ParametersDPointer to the linear flash driver's data for the specific flash disk used in the device list. FlashInfoPoints to a structure to receive the results. return valueIf the function succeeds, the return value is RTF_NO_ERROR and *FlashInfo is filled with statistics about the volume. Otherwise, a negative error code is returned. Note that function RTFDrvFlashInfo directly calls the linear flash driver and bypass RTFiles-32's file system locking. This function must never be executed while other threads are accessing the same flash disk volume.
|