Get_Drive_Status

This function returns the Drive_Information_Record structure for the specified disk. This structure contains variant data for a physical disk drive.


#include <lvm_intr.h>

Drive_Information_Record _System Get_Drive_Status(

    ADDRESS      Drive_Handle,  /* (I) Handle of the disk to be queried */
    CARDINAL32 * Error_Code     /* (O) Address where the error code will be stored */

);

Parameters

Drive_Handle
The handle of the disk drive whose data is being queried. Drive handles may be obtained through the Get_Drive_Control_Data function.
Error_Code
The address of a CARDINAL32 in which to store an error code should an error occur.

Returns

This function returns the Drive_Information_Record for the drive whose handle is specified in Drive_Handle.

Error Handling

If an error occurs, the value pointed to by Error_Code will be greater than 0.

Side Effects

None.

Notes

None.

16-Bit Equivalent:

void _Far16 _Pascal _loadds GET_DRIVE_STATUS16(
        CARDINAL32                          Drive_Handle,
        Drive_Information_Record *   _Seg16 Drive_Status,
        CARDINAL32 *                 _Seg16 Error_Code
);