ReleaseNtmsCleanerSlot function (ntmsapi.h)
[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The ReleaseNtmsCleanerSlot function removes an existing slot reservation for a cleaning cartridge. The slot can then be used for data cartridges.
Syntax
DWORD ReleaseNtmsCleanerSlot(
[in] HANDLE hSession,
[in] LPNTMS_GUID lpLibrary
);
Parameters
[in] hSession
Handle to the session returned by the OpenNtmsSession function.
[in] lpLibrary
Unique identifier of the library to release the cleaner slot.
Return value
This function returns one of the following values.
Value | Meaning |
---|---|
|
NTMS_CONTROL_ACCESS to the library is denied. Other security errors are also possible, but they would indicate a security subsystem error. |
|
The library is not currently connected. |
|
The value specified in the hSession parameter is not valid. |
|
Unable to connect to the RSM service. |
|
This library has no slot reserved for a cleaner cartridge. |
|
The library has a reserved cleaner cartridge slot but the slot contains a cleaner cartridge (the slot must be empty). Use the EjectNtmsCleaner function to eject a cleaner cartridge. |
|
The library has a reserved cleaner cartridge slot, but the specified slot is currently not installed in the library. This error can occur if at least one magazine is missing from the library. |
|
The function was queued successfully. |
Remarks
For the ReleaseNtmsCleanerSlot function to succeed, the slot must be present and empty. The library must also have a slot reserved for cleaning.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | ntmsapi.h |
Library | Ntmsapi.lib |
DLL | Ntmsapi.dll |