[This is preliminary documentation and subject to change.]
The InventoryNtmsLibrary function queues an inventory of the specified online library. If the library is busy, RSM queues InventoryNtmsLibrary and returns success.
DWORD WINAPI InventoryNtmsLibrary(
HANDLE hSession,
LPNTMS_GUID lpLibraryId,
DWORD dwAction
);
Value | Meaning |
---|---|
NTMS_INVENTORY_OMID | A full on-media inventory is performed. Each partition of each medium must be mounted into a drive. This is a time consuming process. |
NTMS_INVENTORY_FAST | If the library has a bar-code reader installed, this flag 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 are classified). |
NTMS_INVENTORY_DEFAULT | Use the InventoryMethod specified in the library object. |
NTMS_INVENTORY_NONE | Perform no inventory. Operation is a non-operation. |
Only online libraries can be inventoried.
The InventoryNtmsLibrary function marks all the slots that currently contain a medium in the library for classification/identification. The InventoryNtmsLibrary function returns when all the media is marked.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ntmsapi.h.
Import Library: Use ntmsapi.lib.
Library Control Functions, AccessNtmsLibraryDoor