GET_MEDIA_TYPES structure

The GET_MEDIA_TYPES structure is used in conjunction with the IOCTL_STORAGE_GET_MEDIA_TYPES_EX request to retrieve information about the types of media supported by a device.

Syntax


typedef struct _GET_MEDIA_TYPES {
  ULONG             DeviceType;
  ULONG             MediaInfoCount;
  DEVICE_MEDIA_INFO MediaInfo[1];
} GET_MEDIA_TYPES, *PGET_MEDIA_TYPES;

Members

DeviceType

Specifies one of the system-defined FILE_DEVICE_XXX constants indicating the type of device (such as FILE_DEVICE_DISK, FILE_DEVICE_KEYBOARD, and so forth) or a vendor-defined value for a new type of device. For more information, see Specifying Device Types.

MediaInfoCount

Contains the number of DEVICE_MEDIA_INFO structures in the array starting at MediaInfo.

MediaInfo

Contains an array whose first element holds the first DEVICE_MEDIA_INFO structure in the array.

Remarks

A storage class driver must handle the IOCTL_STORAGE_GET_MEDIA_TYPES_EX request to support any device that the Removable Storage Manager (RSM) accesses, whether the device is a stand-alone device or a data transfer element (drive) in a media library or changer.

Requirements

Header

Ntddstor.h (include Ntddstor.h)

See also

IOCTL_STORAGE_GET_MEDIA_TYPES_EX
DEVICE_MEDIA_INFO

 

 

Send comments about this topic to Microsoft

Show: