Platform SDK: Hardware

MEDIA_TYPE

The MEDIA_TYPE enumeration type contains values that specify various forms of device media. The comments explain the enumerators.

typedef enum _MEDIA_TYPE { 
  Unknown, 
  F5_1Pt2_512, 
  F3_1Pt44_512, 
  F3_2Pt88_512, 
  F3_20Pt8_512, 
  F3_720_512, 
  F5_360_512, 
  F5_320_512, 
  F5_320_1024, 
  F5_180_512, 
  F5_160_512, 
  RemovableMedia, 
  FixedMedia 
} MEDIA_TYPE; 
Enumerator Value Meaning
Unknown Format is unknown
F5_1Pt2_512 5.25", 1.2MB, 512 bytes/sector
F3_1Pt44_512 3.5", 1.44MB, 512 bytes/sector
F3_2Pt88_512 3.5", 2.88MB, 512 bytes/sector
F3_20Pt8_512 3.5", 20.8MB, 512 bytes/sector
F3_720_512 3.5", 720KB, 512 bytes/sector
F5_360_512 5.25", 360KB, 512 bytes/sector
F5_320_512 5.25", 320KB, 512 bytes/sector
F5_320_1024 5.25", 320KB, 1024 bytes/sector
F5_180_512 5.25", 180KB, 512 bytes/sector
F5_160_512 5.25", 160KB, 512 bytes/sector
RemovableMedia Removable media other than floppy
FixedMedia Fixed hard disk media

Remarks

The MediaType member of the DISK_GEOMETRY data structure is of type MEDIA_TYPE. The DeviceIoControl function receives a DISK_GEOMETRY structure in response to an IOCTL_DISK_GET_DRIVE_GEOMETRY control code. The DeviceIoControl function receives an array of DISK_GEOMETRY structures in response to an IOCTL_DISK_GET_MEDIA_TYPES control code.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Winioctl.h.

See Also

Device Input and Output Overview, Device Input and Output Enumeration Types, DeviceIoControl, DISK_GEOMETRY, IOCTL_DISK_GET_DRIVE_GEOMETRY, IOCTL_DISK_GET_MEDIA_TYPES