GET_MEDIA_TYPES structure (ntddstor.h)
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[1]
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
Requirement | Value |
---|---|
Header | ntddstor.h (include Ntddstor.h, Minitape.h) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for