[This is preliminary documentation and subject to change.]
The NTMS_DRIVEINFORMATION data structure defines properties specific to a drive object.
typedef struct _NTMS_DRIVEINFORMATION {
DWORD Number;
DWORD State;
NTMS_GUID DriveType;
TCHAR szSerialNumber[NTMS_SERIALNUMBER_LENGTH];
TCHAR szRevision[NTMS_REVISION_LENGTH];
TCHAR szDeviceName[NTMS_DEVICENAME_LENGTH];
WORD ScsiPort;
WORD ScsiBus;
WORD ScsiTarget;
WORD ScsiLun;
SYSTEMTIME LastCleanedTs;
DWORD dwMountCount;
NTMS_GUID SavedPartitionId;
NTMS_GUID Library;
GUID Reserved;
DWORD dwDeferDismountDelay;
} NTMS_DRIVEINFORMATION;
Value | Meaning |
---|---|
NTMS_DRIVESTATE_BEING_CLEANED | The drive is being cleaned and is unavailable. |
NTMS_DRIVESTATE_DISMOUNTABLE | If a library is set for lazy dismounts, the medium might be left in the library's drive on a dismount. RSM can satisfy mount requests for loaded and dismounted drives. |
NTMS_DRIVESTATE_DISMOUNTED | No medium in the drive. |
NTMS_DRIVESTATE_LOADED | The medium is mounted in the drive and is loaded for read and write access. |
NTMS_DRIVESTATE_MOUNTED | The medium is mounted in the drive but is not ready for read and write access. This is a temporary state that is used while a drive is waiting for spindle synchronization or loading tape media into the head mechanism. |
NTMS_DRIVESTATE_UNLOADED | The medium has been dismounted by the drive and is ready to be opened. This state indicates that the spindle has stopped or a tape media has been returned to the tape cartridge. |
The NTMS_DRIVEINFORMATION data structure is part of the NTMS_OBJECTINFORMATION structure used for the GetNtmsObjectInformation and SetNtmsObjectInformation functions.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ntmsapi.h.
Import Library: Use ntmsapi.lib.