NTMS_MEDIATYPEINFORMATION

[This is preliminary documentation and subject to change.]

The NTMS_MEDIATYPEINFORMATION data structure defines the properties specific to a type of media supported by RSM.

typedef struct _NTMS_MEDIATYPEINFORMATION {
    DWORD    MediaType;
    DWORD    NumberOfSides;
    DWORD    ReadWriteCharacteristics;
    DWORD    DeviceType;
} NTMS_MEDIATYPEINFORMATION;
 

Members

MediaType
Each disk or tape driver reports the media-type enumeration value of the medium that is currently mounted in the drive. The enumeration values are specified in Winoclt.h. This unique media type value is mapped to a human-readable string in the MediaType object szName member. Some examples of MediaType names are MP_8mm and MO_5_RW.
NumberOfSides
Number of sides on the media.
ReadWriteCharacteristics
Identifies the read/write characteristics of the media type. This can be one of the following values.
Value Meaning
NTMS_MEDIARW_REWRITABLE Media that can be rewritten. This includes magnetic tape, magnetic disk, and some optical disk media.
NTMS_MEDIARW_WRITEONCE Media that can only be written to one time. Some optical media, for example, 5.25", 12", 14" WORM, and CD-R, are designed to be write-once.
NTMS_MEDIARW_READONLY Media that cannot be written to CD-ROM and DVD-ROM.

DeviceType
The SCSI device type as reported from device inquiry data. From Winioctl.h. This can be one of the following values.
Value Meaning
FILE_DEVICE_CD_ROM CD-ROM device.
FILE_DEVICE_DISK Direct access device.
FILE_DEVICE_TAPE Sequential access device.

Remarks

The NTMS_MEDIATYPEINFORMATION data structure is part of the NTMS_OBJECTINFORMATION structure and is not used separately.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in ntmsapi.h.
  Import Library: Use ntmsapi.lib.