| Platform SDK: Removable Storage Manager |
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;
DWORD dwFlags;
} 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 stand-alone 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 side 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. |
| Value | Meaning |
|---|---|
| NTMS_LIBRARYFLAG_FIXEDOFFLINE | If dwFlags is set to this value, the library is an offline library, not a library that is not present. |
| NTMS_LIBRARYFLAG_CLEANERPRESENT | If dwFlags is set to this value, a cleaner is present in the changer. |
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/2000: Requires Windows 2000.
Header: Declared in Ntmsapi.h.