Compartilhar via


NTMS_MEDIATYPEINFORMATION Structure

[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]

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

Syntax

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. This member can be one of the values in the STORAGE_MEDIA_TYPE enumeration type. This unique media type value is mapped to a human-readable string in the object szName member.

  • 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
    SCSI device type as reported from device inquiry data. 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 structure is included in the NTMS_OBJECTINFORMATION structure.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

End of client support

Windows Vista

End of server support

Windows Server 2008

Header

Ntmsapi.h

See Also

NTMS_OBJECTINFORMATION

 

 

Send comments about this topic to Microsoft

Build date: 6/9/2011