2.2.4.31 NTMS_PMIDINFORMATIONA Structure
The NTMS_PMIDINFORMATIONA structure describes the properties of a physical media object, as a sequence of ASCII characters.
-
typedef struct _NTMS_PMIDINFORMATIONA { NTMS_GUID CurrentLibrary; NTMS_GUID MediaPool; NTMS_GUID Location; DWORD LocationType; NTMS_GUID MediaType; NTMS_GUID HomeSlot; char szBarCode[64]; DWORD BarCodeState; char szSequenceNumber[32]; DWORD MediaState; DWORD dwNumberOfPartitions; DWORD dwMediaTypeCode; DWORD dwDensityCode; NTMS_GUID MountedPartition; } NTMS_PMIDINFORMATIONA;
CurrentLibrary: The identifier of the library in which the media is contained.
MediaPool: The identifier of the media pool to which the media is assigned.
Location: The identifier of the physical location object for the media.
LocationType: Any of the NTMS_STORAGESLOT, NTMS_DRIVE, or NTMS_IEPORT values defined in the NtmsObjectsTypes (section 2.2.1.6) enumeration, specifying the type of the current location for a piece of physical media.
MediaType: The identifier of the media type object for the medium.
HomeSlot: The identifier of the library storage slot in which the medium is stored.
szBarCode: The null-terminated Unicode string specifying the numeric value of the bar code of the media. If the bar code is not available, BarCodeState MUST be set to NTMS_BARCODESTATE_UNREADABLE. For more information, see section 2.2.4.1.
BarCodeState: A value from the NtmsBarCodeState (section 2.2.4.1) enumeration specifying the state of the bar code.
szSequenceNumber: A sequential number assigned to the specified medium as a human-readable value.
MediaState: The value from the NtmsMediaState (section 2.2.4.4) enumeration describing the state of the media.
dwNumberOfPartitions: The number of sides on the medium.
dwMediaTypeCode: The SCSI [ANSI-131-1994] type code of the medium.
dwDensityCode: The SCSI density code of the medium.
MountedPartition: The identifier of the media side that is currently mounted.