Platform SDK: Removable Storage Manager |
The NTMS_PMIDINFORMATION data structure defines the properties specific to a physical media object.
typedef struct _NTMS_PMIDINFORMATION { NTMS_GUID CurrentLibrary, NTMS_GUID MediaPool; NTMS_GUID Location; DWORD LocationType; NTMS_GUID HomeSlot; NTMS_GUID MediaType; TCHAR szBarCode[NTMS_BARCODE_LENGTH]; DWORD BarCodeState; TCHAR szSequenceNumber[NTMS_SEQUENCE_LENGTH]; DWORD MediaState; DWORD dwNumberOfPartitions; DWORD dwMediaTypeCode; DWORD dwDensityCode; NTMS_GUID MountedPartition; } NTMS_PMIDINFORMATION;
Value | Meaning |
---|---|
NTMS_BARCODESTATE_OK | The media has a bar code and it is readable. |
NTMS_BARCODESTATE_UNREADABLE | The media either does not have a bar code or the bar code is unreadable. |
Value | Meaning |
---|---|
NTMS_MEDIASTATE_IDLE | The media is in a slot in the library, in a drive dismounted, or in an offline library. |
NTMS_MEDIASTATE_INUSE | The media is marked as in use as soon as a request for an operation is successfully made to RSM. |
NTMS_MEDIASTATE_LOADED | The state of the media when RSM has determined that the media is available for reading and writing. |
NTMS_MEDIASTATE_MOUNTED | The state of a piece of physical media when the media is placed in a drive. |
NTMS_MEDIASTATE_OP_ERROR | The physical media is in an error state that is recoverable. No operator intervention is required. |
NTMS_MEDIASTATE_UNLOADED | The state of the media when it is ready to be removed from a drive. The drive state, DISMOUNTABLE, also indicates that a drive can be removed at any time. |
NTMS_MEDIASTATE_OPREQ | Media is waiting for operator request. |
The NTMS_PMIDINFORMATION data structure is part of the NTMS_OBJECTINFORMATION structure and is not used separately.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.