NTMS_DRIVETYPEINFORMATIONA structure (ntmsapi.h)

[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]

The NTMS_DRIVETYPEINFORMATION structure defines the properties specific to a type of drive supported by RSM.

Syntax

typedef struct _NTMS_DRIVETYPEINFORMATIONA {
  CHAR  szVendor[NTMS_VENDORNAME_LENGTH];
  CHAR  szProduct[NTMS_PRODUCTNAME_LENGTH];
  DWORD NumberOfHeads;
  DWORD DeviceType;
} NTMS_DRIVETYPEINFORMATIONA;

Members

szVendor[NTMS_VENDORNAME_LENGTH]

Name of the vendor of the drive. This is acquired directly from the device inquiry data.

szProduct[NTMS_PRODUCTNAME_LENGTH]

Name of the product of the drive. This is acquired directly from the device inquiry data.

NumberOfHeads

This member is reserved for future use and should be ignored.

DeviceType

The SCSI device type as reported from device inquiry data. From Winioctl.h. This can be one of the following values.

Value Meaning
FILE_DEVICE_CD_ROM
CD-ROM device.
FILE_DEVICE_DISK
Direct access device.
FILE_DEVICE_DVD
DVD device
FILE_DEVICE_TAPE
Sequential access device.

Remarks

The NTMS_DRIVETYPEINFORMATION structure is included in the NTMS_OBJECTINFORMATION structure.

Note

The ntmsapi.h header defines NTMS_DRIVETYPEINFORMATION as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header ntmsapi.h

See also

NTMS_OBJECTINFORMATION