Export (0) Print
Expand All

DEVICE_MEDIA_INFO structure

A storage class driver returns an array of DEVICE_MEDIA_INFO structures, embedded in a GET_MEDIA_TYPES structure, in response to an IOCTL_STORAGE_GET_MEDIA_TYPES_EX device-control request.

Syntax


typedef struct _DEVICE_MEDIA_INFO {
  union {
    struct {
      LARGE_INTEGER      Cylinders;
      STORAGE_MEDIA_TYPE MediaType;
      ULONG              TracksPerCylinder;
      ULONG              SectorsPerTrack;
      ULONG              BytesPerSector;
      ULONG              NumberMediaSides;
      ULONG              MediaCharacteristics;
    } DiskInfo;
    struct {
      LARGE_INTEGER      Cylinders;
      STORAGE_MEDIA_TYPE MediaType;
      ULONG              TracksPerCylinder;
      ULONG              SectorsPerTrack;
      ULONG              BytesPerSector;
      ULONG              NumberMediaSides;
      ULONG              MediaCharacteristics;
    } RemovableDiskInfo;
    struct {
      STORAGE_MEDIA_TYPE MediaType;
      ULONG              MediaCharacteristics;
      ULONG              CurrentBlockSize;
      STORAGE_BUS_TYPE   BusType;
      union {
        struct {
          UCHAR MediumType;
          UCHAR DensityCode;
        } ScsiInformation;
      } BusSpecificData;
    } TapeInfo;
  } DeviceSpecific;
} DEVICE_MEDIA_INFO, *PDEVICE_MEDIA_INFO;

Members

DeviceSpecific
DiskInfo

Describes a nonremovable (fixed) disk.

Cylinders

Specifies the number of cylinders on this disk.

MediaType

Specifies a MEDIA_TYPE of FixedMedia.

TracksPerCylinder

Specifies the number of tracks per cylinder.

SectorsPerTrack

Specifies the number of sectors per track.

BytesPerSector

Specifies the number of bytes per sector.

NumberMediaSides

Specifies the number of sides of the disk that can contain data: either 1 for one-sided media or 2 for two-sided media.

MediaCharacteristics

Specifies characteristics of the disk indicated by one or more of the following flags.

MEDIA_CURRENTLY_MOUNTED
MEDIA_ERASEABLE
MEDIA_READ_ONLY
MEDIA_READ_WRITE
MEDIA_WRITE_ONCE
MEDIA_WRITE_PROTECTED
RemovableDiskInfo

Describes a removable (nonfixed) disk.

Cylinders

Specifies the number of cylinders on this disk.

MediaType

Specifies a MEDIA_TYPE or STORAGE_MEDIA_TYPE value that indicates the type of removable disk.

TracksPerCylinder

Specifies the number of tracks per cylinder.

SectorsPerTrack

Specifies the number of sectors per track.

BytesPerSector

Specifies the number of bytes per sector.

NumberMediaSides

Specifies the number of sides of the disk that can contain data: 1 for one-sided media or 2 for two-sided media.

MediaCharacteristics

Specifies characteristics of the disk, indicated by MEDIA_XXX flags ORed together. For a list of these flags, see the DeviceSpecific.DiskInfo.MediaCharacteristics member of the DeviceSpecific.DiskInfo structure.

TapeInfo

Describes a tape.

MediaType

Specifies a STORAGE_MEDIA_TYPE value that indicates the type of tape described in this structure.

MediaCharacteristics

Specifies characteristics of the tape, indicated by MEDIA_XXX flags ORed together. For a list of these flags, see the DeviceSpecific.DiskInfo.MediaCharacteristics member of the DeviceSpecific.DiskInfo structure.

CurrentBlockSize

Specifies the current block size, in bytes.

BusType

Specifies a value of type STORAGE_BUS_TYPE that indicates the bus type.

BusSpecificData
ScsiInformation

Specifies bus-specific information from mode page data that describes the medium supported by the tape drive. Values for other bus types will be supplied in a later release.

MediumType

Specifies the SCSI-specific medium type.

DensityCode

Specifies the SCSI-specific current operating density for read/write operations.

Remarks

This structure is used by a storage driver to indicate the types of media supported by a device and which type is currently mounted, if any. A driver must provide this information if it might control drives in a media library or changer or if its device might be accessed by the Removable Storage Manager (RSM).

The driver fills in an array of DEVICE_MEDIA_INFO structures, one for each medium type supported by the device, embedded in a GET_MEDIA_TYPES structure.

Requirements

Header

Ntddstor.h (include Ntddstor.h)

See also

TapeMiniGetMediaTypes
STORAGE_MEDIA_TYPE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft