GET_MEDIA_TYPES - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// minitape.h

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

View the official Windows Driver Kit DDI reference
// ntddstor.h

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

View the official Windows Driver Kit DDI reference
// winioctl.h

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

View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-minitape-_get_media_types)

_GET_MEDIA_TYPES structure (minitape.h)

Description

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.

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.

See also

DEVICE_MEDIA_INFO

IOCTL_STORAGE_GET_MEDIA_TYPES_EX


Windows Driver Kit DDI reference (ns-ntddstor-_get_media_types)

_GET_MEDIA_TYPES structure (ntddstor.h)

Description

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.

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.

See also

DEVICE_MEDIA_INFO

IOCTL_STORAGE_GET_MEDIA_TYPES_EX


Win32 API reference (ns-winioctl-get_media_types)

GET_MEDIA_TYPES structure

Description

Contains information about the media types supported by a device.

Members

DeviceType

The type of device. Values from 0 through 32,767 are reserved for use by Microsoft Corporation. Values from 32,768 through 65,535 are reserved for use by other vendors. The following values are defined by Microsoft:

FILE_DEVICE_8042_PORT

FILE_DEVICE_ACPI

FILE_DEVICE_BATTERY

FILE_DEVICE_BEEP

FILE_DEVICE_BLUETOOTH

FILE_DEVICE_BUS_EXTENDER

FILE_DEVICE_CD_ROM

FILE_DEVICE_CD_ROM_FILE_SYSTEM

FILE_DEVICE_CHANGER

FILE_DEVICE_CONTROLLER

FILE_DEVICE_CRYPT_PROVIDER

FILE_DEVICE_DATALINK

FILE_DEVICE_DFS

FILE_DEVICE_DFS_FILE_SYSTEM

FILE_DEVICE_DFS_VOLUME

FILE_DEVICE_DISK

FILE_DEVICE_DISK_FILE_SYSTEM

FILE_DEVICE_DVD

FILE_DEVICE_FILE_SYSTEM

FILE_DEVICE_FIPS

FILE_DEVICE_FULLSCREEN_VIDEO

FILE_DEVICE_INFINIBAND

FILE_DEVICE_INPORT_PORT

FILE_DEVICE_KEYBOARD

FILE_DEVICE_KS

FILE_DEVICE_KSEC

FILE_DEVICE_MAILSLOT

FILE_DEVICE_MASS_STORAGE

FILE_DEVICE_MIDI_IN

FILE_DEVICE_MIDI_OUT

FILE_DEVICE_MODEM

FILE_DEVICE_MOUSE

FILE_DEVICE_MULTI_UNC_PROVIDER

FILE_DEVICE_NAMED_PIPE

FILE_DEVICE_NETWORK

FILE_DEVICE_NETWORK_BROWSER

FILE_DEVICE_NETWORK_FILE_SYSTEM

FILE_DEVICE_NETWORK_REDIRECTOR

FILE_DEVICE_NULL

FILE_DEVICE_PARALLEL_PORT

FILE_DEVICE_PHYSICAL_NETCARD

FILE_DEVICE_PRINTER

FILE_DEVICE_SCANNER

FILE_DEVICE_SCREEN

FILE_DEVICE_SERENUM

FILE_DEVICE_SERIAL_MOUSE_PORT

FILE_DEVICE_SERIAL_PORT

FILE_DEVICE_SMARTCARD

FILE_DEVICE_SMB

FILE_DEVICE_SOUND

FILE_DEVICE_STREAMS

FILE_DEVICE_TAPE

FILE_DEVICE_TAPE_FILE_SYSTEM

FILE_DEVICE_TERMSRV

FILE_DEVICE_TRANSPORT

FILE_DEVICE_UNKNOWN

FILE_DEVICE_VDM

FILE_DEVICE_VIDEO

FILE_DEVICE_VIRTUAL_DISK

FILE_DEVICE_VMBUS

FILE_DEVICE_WAVE_IN

FILE_DEVICE_WAVE_OUT

FILE_DEVICE_WPD

MediaInfoCount

The number of elements in the MediaInfo array.

MediaInfo

A pointer to the first DEVICE_MEDIA_INFO structure in the array. There is one structure for each media type supported by the device.

See also

DEVICE_MEDIA_INFO

IOCTL_STORAGE_GET_MEDIA_TYPES_EX