NTMS_PMIDINFORMATIONA structure (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The NTMS_PMIDINFORMATION structure defines the properties specific to a physical media object.
Syntax
typedef struct _NTMS_PMIDINFORMATIONA {
NTMS_GUID CurrentLibrary;
NTMS_GUID MediaPool;
NTMS_GUID Location;
DWORD LocationType;
NTMS_GUID MediaType;
NTMS_GUID HomeSlot;
CHAR szBarCode[NTMS_BARCODE_LENGTH];
DWORD BarCodeState;
CHAR szSequenceNumber[NTMS_SEQUENCE_LENGTH];
DWORD MediaState;
DWORD dwNumberOfPartitions;
DWORD dwMediaTypeCode;
DWORD dwDensityCode;
NTMS_GUID MountedPartition;
} NTMS_PMIDINFORMATIONA;
Members
CurrentLibrary
Unique ID of the library in which the media is contained.
MediaPool
Unique ID of the media pool to which the media is assigned.
Location
Unique ID of the physical location object for the media.
LocationType
Current location type of a piece of physical media. The value of this member can be set to NTMS_STORAGESLOT, NTMS_DRIVE, NTMS_IEPORT. (Offline media are in slots.)
MediaType
Unique ID of a media type object.
HomeSlot
Unique ID of the library storage slot in which media is stored.
szBarCode[NTMS_BARCODE_LENGTH]
String that matches the bar-code value on a bar-code label of a piece of physical media.
BarCodeState
Current state of the bar code. This can be one of the following values.
Value | Meaning |
---|---|
|
The media has a bar code and it is readable. |
|
The media either does not have a bar code or the bar code is unreadable. |
szSequenceNumber[NTMS_SEQUENCE_LENGTH]
Sequential number assigned to the specified medium as a human-readable value that must be transcribed by a user on the medium so that the medium can be located in an offline library.
MediaState
Current state for the piece of physical media. This can be one of the following values.
dwNumberOfPartitions
Number of sides on the medium.
dwMediaTypeCode
SCSI media type code.
dwDensityCode
SCSI density code.
MountedPartition
Globally unique ID of the side of the media that is currently mounted.
Remarks
The NTMS_PMIDINFORMATION structure is included in the NTMS_OBJECTINFORMATION structure.
Note
The ntmsapi.h header defines NTMS_PMIDINFORMATION as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | ntmsapi.h |