网站首页  词典首页

请输入您要查询的函数:

 

术语 reserventmscleanerslot
释义 ReserveNtmsCleanerSlot
语法:
C++
DWORD ReserveNtmsCleanerSlot(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibrary,
__in LPNTMS_GUID lpSlot
);
ReserveNtmsCleanerSlot功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该ReserveNtmsCleanerSlot功能保护区库中的一个单位,单插槽的驱动器清洁磁带。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpLibrary [in]
库的唯一标识符保留清洁插槽。
lpSlot [in]
唯一标识符槽要更清洁墨盒保留。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_CONTROL_ACCESS到库被拒绝。其他安全错误也是可能的,但它们都将意味着安全子系统的错误。
ERROR_ALREADY_RESERVEDEither这个槽或其他库的槽已经预留了清理。要更改清洁墨盒插槽,目前保留清洁插槽首先必须释放,使用ReleaseNtmsCleanerSlot功能。
ERROR_DEVICE_NOT_AVAILABLEThe库当前未连接。
ERROR_INVALID_HANDLEThe值在hSession参数中指定无效。
ERROR_INVALID_SLOTUnable检索数据库中的槽定义。
ERROR_NOT_CONNECTEDUnable连接到RSM服务。
ERROR_SLOT_FULLA清洗槽不保留。插槽在它指定的媒体。预订只能执行一个空槽。
ERROR_SLOT_NOT_PRESENTA清洗槽不保留。指定的槽目前没有安装在库中。如果出现此错误至少有一个墨盒杂志是从库丢失。
ERROR_SUCCESSThe功能排队成功。
备注
与ReserveNtmsCleanerSlot功能保留的槽必须存在空洞。该库已不能为清洁墨盒预留插槽。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
清洁管理职能
CleanNtmsDrive
EjectNtmsCleaner
InjectNtmsCleaner
ReleaseNtmsCleanerSlot
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==ReserveNtmsCleanerSlot Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The ReserveNtmsCleanerSlot function reserves a single slot in a library unit for a drive cleaner cartridge.
Syntax
C++
DWORD ReserveNtmsCleanerSlot(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibrary,
__in LPNTMS_GUID lpSlot
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpLibrary [in]
Unique identifier of the library to reserve the cleaner slot.
lpSlot [in]
Unique identifier of the slot that is to be reserved for a cleaner cartridge.
Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_CONTROL_ACCESS to the library is denied. Other security errors are also possible, but they would indicate a security subsystem error.
ERROR_ALREADY_RESERVEDEither this slot or another slot in the library has already been reserved for cleaning. To change the cleaner cartridge slot, the currently reserved cleaner slot must be released first, using the ReleaseNtmsCleanerSlot function.
ERROR_DEVICE_NOT_AVAILABLEThe library is not currently connected.
ERROR_INVALID_HANDLEThe value that is specified in the hSession parameter is not valid.
ERROR_INVALID_SLOTUnable to retrieve the slot definition from the database.
ERROR_NOT_CONNECTEDUnable to connect to the RSM service.
ERROR_SLOT_FULLA cleaner slot is not reserved. The slot specified has media in it. Reservation can only be performed on an empty slot.
ERROR_SLOT_NOT_PRESENTA cleaner slot is not reserved. The slot specified is currently not installed in the library. This error occurs if at least one cartridge magazine is missing from the library.
ERROR_SUCCESSThe function was queued successfully.

Remarks
The slot reserved with the ReserveNtmsCleanerSlot function must be present and empty. The library must not already have a slot reserved for a cleaner cartridge.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
End of client supportWindows Vista
End of server supportWindows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
See Also
Cleaner Management Functions
CleanNtmsDrive
EjectNtmsCleaner
InjectNtmsCleaner
ReleaseNtmsCleanerSlot
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540730(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:20:51