Export (0) Print
Expand All

GETVERSIONINPARAMS structure

The GETVERSIONINPARAMS structure is used in conjunction with the SMART_GET_VERSION request to retrieve version information, a capabilities mask, and a bitmask for the indicated device.

Syntax


typedef struct _GETVERSIONINPARAMS {
  UCHAR bVersion;
  UCHAR bRevision;
  UCHAR bReserved;
  UCHAR bIDEDeviceMap;
  ULONG fCapabilities;
  ULONG dwReserved[4];
} GETVERSIONINPARAMS, *PGETVERSIONINPARAMS, *LPGETVERSIONINPARAMS;

Members

bVersion

Contains an integer that indicates the version number of the binary driver.

bRevision

Contains an integer that indicates the revision number of the binary driver.

bReserved

Reserved.

bIDEDeviceMap

Contains the bitmap. The following table explains the meaning of the bitmap:

Bitmap FlagsMeaning

Bit 0 is set to 1.

The device is either a SATA drive or an IDE drive. If it is an IDE drive, it is the master device on the primary channel.

Bit 1 is set to 1.

The device is an IDE drive, and it is the subordinate device on the primary channel.

Bit 2 is set to 1.

The device is an IDE drive, and it is the master device on the secondary channel.

Bit 3 is set to 1.

The device is an IDE drive, and it is the subordinate device on the secondary channel.

Bit 4 is set to 1.

The device is an ATAPI drive, and it is the master device on the primary channel.

Bit 5 is set to 1.

The device is an ATAPI drive, and it is the subordinate device on the primary channel.

Bit 6 is set to 1.

The device is an ATAPI drive, and it is the master device on the secondary channel.

Bit 7 is set to 1.

The device is an ATAPI drive, and it is the subordinate device on the secondary channel.

 

fCapabilities

Contains the bitmask of driver capabilities.

Bitmask FlagsMeaning

CAP_ATA_ID_CMD

The device supports the ATA ID command.

CAP_ATAPI_ID_CMD

The device supports the ATAPI ID command.

CAP_SMART_CMD

The device supports SMART commands.

 

dwReserved

Reserved.

Requirements

Header

Ntdddisk.h (include Ntdddisk.h)

See also

SMART_GET_VERSION

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft