[This is preliminary documentation and subject to change.]
The InjectNtmsCleaner function allows a cleaner cartridge to be inserted into the specified online library unit.
DWORD WINAPI InjectNtmsCleaner(
HANDLE hSession,
LPNTMS_GUID lpLibrary,
LPNTMS_GUID lpInjectOperation,
WORD dwNumberOfCleansLeft,
DWORD dwAction
);
Value | Meaning |
---|---|
NTMS_INJECT_START | Start the insertion with either the NTMS_IEPORT or the NTMS_IEDOOR object. A single cleaner cartridge should be inserted. If the NTMS_IEDOOR object is used, no inventory will be performed on the library. |
NTMS_INJECT_STOP | For libraries with PORTs only: Terminates the insertion prior to the time-out event lapsing. |
To use the InjectNtmsCleaner function, the number of cleaning cycles that remain on the cleaner cartridge must be specified so that RSM can keep track of it.
If an NTMS_IEPORT object is available, the NTMS_IEPORT object directs the cartridge to the currently reserved cleaner slot.
If there is no NTMS_IEPORT object, a door access is performed. In this case, the operator is directed to place the media into the reserved slot.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in ntmsapi.h.
Import Library: Use ntmsapi.lib.
Cleaner Management Functions, CleanNtmsDrive, EjectNtmsCleaner, ReleaseNtmsCleanerSlot, ReserveNtmsCleanerSlot