Export (0) Print
Expand All

DEVICE_MEDIA_INFO structure

Provides information about the media supported by a device.

Syntax


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

Members

DeviceSpecific

A union that contains the following members.

DiskInfo

A structure that contains the following members.

Cylinders

The number of cylinders on this disk.

MediaType

The media type. This member can be one of the values from the STORAGE_MEDIA_TYPE or MEDIA_TYPE enumeration types.

TracksPerCylinder

The number of tracks per cylinder.

SectorsPerTrack

The number of sectors per track.

BytesPerSector

The number of bytes per sector.

NumberMediaSides

The number of sides of the disk that can contain data. This member is 1 for one-sided media or 2 for two-sided media.

MediaCharacteristics

The characteristics of the media. This member can be one or more of the following values.

MEDIA_CURRENTLY_MOUNTED (0x80000000)
MEDIA_ERASEABLE (0x00000001)
MEDIA_READ_ONLY (0x00000004)
MEDIA_READ_WRITE (0x00000008)
MEDIA_WRITE_ONCE (0x00000002)
MEDIA_WRITE_PROTECTED (0x00000100)
RemovableDiskInfo

A structure that contains the following members.

Cylinders

The number of cylinders on this disk.

MediaType

The media type. This member can be one of the values from the STORAGE_MEDIA_TYPE or MEDIA_TYPE enumeration types.

TracksPerCylinder

The number of tracks per cylinder.

SectorsPerTrack

The number of sectors per track.

BytesPerSector

The number of bytes per sector.

NumberMediaSides

The number of sides of the disk that can contain data. This member is 1 for one-sided media or 2 for two-sided media.

MediaCharacteristics

The characteristics of the media. This member can be one or more of the following values.

MEDIA_CURRENTLY_MOUNTED (0x80000000)
MEDIA_ERASEABLE (0x00000001)
MEDIA_READ_ONLY (0x00000004)
MEDIA_READ_WRITE (0x00000008)
MEDIA_WRITE_ONCE (0x00000002)
MEDIA_WRITE_PROTECTED (0x00000100)
TapeInfo

A structure that contains the following members.

MediaType

The media type. This member can be one of the values from the STORAGE_MEDIA_TYPE or MEDIA_TYPE enumeration types.

MediaCharacteristics

The characteristics of the media. This member can be one or more of the following values.

MEDIA_CURRENTLY_MOUNTED (0x80000000)
MEDIA_ERASEABLE (0x00000001)
MEDIA_READ_ONLY (0x00000004)
MEDIA_READ_WRITE (0x00000008)
MEDIA_WRITE_ONCE (0x00000002)
MEDIA_WRITE_PROTECTED (0x00000100)
CurrentBlockSize

The current block size, in bytes.

BusType

The type of bus to which the tape drive is connected. This members can be one of the STORAGE_BUS_TYPE enumeration values.

BusSpecificData

A union that contains the following members.

ScsiInformation

A structure that contains the following members.

MediumType

The SCSI-specific medium type.

DensityCode

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

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

WinIoCtl.h (include Windows.h)

See also

GET_MEDIA_TYPES
LARGE_INTEGER
STORAGE_BUS_TYPE
STORAGE_MEDIA_TYPE
MEDIA_TYPE

 

 

Community Additions

ADD
Show:
© 2014 Microsoft