6. LIBRARY FUNCTIONS
6-8
Note that if multiple conditions exist at the same time, the logical sum of the values shown in
Table 6-3 is stored.
(Example) If drive failure prediction (SMART) is detected and the drive power-on (=used) hours
exceeded the threshold at the same time:
DISKSTAT_SMART | DISKSTAT_OVERRUN (0x48)
<Diagnosis>
If this function completes successfully, the function returns TRUE. If this function terminates with
an error, the function returns FALSE. When this function terminates with an error, the value
stored in phfwDiskStatus is invalid.
When this function terminates with an error, call the GetLastError Windows API function to get
the error code. Error codes returned by this function on its own are as follows.
Error code (value)
Description
HFB_STORAGE_INVALID_PARAMETER
(0x20000001)
There is an error in the specified parameters.
HFB_STORAGE_NOT_INITIALIZE
(0x20000002)
Startup of the RAS software has not completed yet.
HFB_STORAGE_INTERNAL_ERROR
(0x20000003)
An internal error has been generated.
Other error codes come from the Windows API functions used by this function. For details about
those error codes, refer to the Windows API help.
<Sample program>
We provide a sample program that uses this function in C. For information about the name of the
sample program and where you can find it, see “6.2 Sample Programs”.
Summary of Contents for HF-BT1000
Page 1: ...BT 63 0004 01 ...
Page 2: ...BT 63 0004 01 ...
Page 15: ...This Page Intentionally Left Blank ...
Page 79: ...This Page Intentionally Left Blank ...
Page 103: ...This Page Intentionally Left Blank ...
Page 111: ...This Page Intentionally Left Blank ...