[This is preliminary documentation and subject to change.]
The NTMS_LIBRARYINFORMATION data structure defines properties specific to a library object.
typedef struct _NTMS_LIBRARYINFORMATION {
DWORD LibraryType;
NTMS_GUID CleanerSlot;
NTMS_GUID CleanerSlotDefault;
BOOL LibrarySupportsDriveCleaning;
BOOL BarCodeReaderInstalled;
DWORD InventoryMethod;
DWORD dwCleanerUsesRemaining;
DWORD FirstDriveNumber;
DWORD dwNumberOfDrives;
DWORD FirstSlotNumber;
DWORD dwNumberOfSlots;
DWORD FirstDoorNumber;
DWORD dwNumberOfDoors;
DWORD FirstPortNumber;
DWORD dwNumberOfPorts;
DWORD FirstChangerNumber;
DWORD dwNumberOfChangers;
DWORD dwNumberOfMedia;
DWORD dwNumberOfMediaTypes;
DWORD dwNumberOfLibRequests;
GUID Reserved;
BOOL AutoRecovery
} NTMS_LIBRARYINFORMATION;
Value | Meaning |
---|---|
NTMS_LIBRARYTYPE_ONLINE | A robotic element that automates the mounting and dismounting of media into one or more drives. |
NTMS_LIBRARYTYPE_STANDALONE | A standalone drive that is modeled as a library with one drive in RSM. |
NTMS_LIBRARYTYPE_OFFLINE | Media that is not in an online library is in an offline library. There is one offline library unit per RSM system. |
NTMS_LIBRARYTYPE_UNKNOWN | Library type cannot be determined. |
Value | Meaning |
---|---|
NTMS_INVENTORY_FAST | If the library has a bar-code reader installed, this value causes a bar-code inventory to be performed. If the library does not have a bar-code reader, this flag causes a differential inventory to be performed (slots which transitioned from empty to full are classified). |
NTMS_INVENTORY_OMID | A full inventory involves mounting each partition in a library and reading the on-media identification from the media. This type of inventory can be very time consuming for some library units. |
NTMS_INVENTORY_NONE | After the library door is closed, no inventory is performed. Inventory might be required if a mount label-check fails. |
For offline libraries, only LibraryType and dwNumberOfMedia are reported. All other values should be ignored.
The NTMS_LIBRARYINFORMATION data structure is included in 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.