网站首页  词典首页

请输入您要查询的函数:

 

术语 ejectntmscleaner
释义 EjectNtmsCleaner
语法:
C++
DWORD EjectNtmsCleaner(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibrary,
__inout LPNTMS_GUID lpEjectOperation,
__in DWORD dwAction
);
EjectNtmsCleaner功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
弹出的EjectNtmsCleaner功能由目前保留清洁槽清洗磁带。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpLibrary [in]
唯一标识符的库对象。
lpEjectOperation [ in , out ]
弹出的GUID库操作过程。如果dwAction是NTMS_EJECT_START,此参数接收的运作的GUID。如果dwAction是NTMS_EJECT_STOP,此参数必须设置为操作GUID来加以制止。
dwAction [in]
要执行的动作。此参数可以是下列值之一。
ValueMeaning
与端口NTMS_EJECT_STARTStarts弹出操作。指定的媒介被弹出,直到超时事件发生时或函数的调用NTMS_EJECT_STOP了。超时值是在库指定对象,并应用到库的所有喷发。
与NTMS_IEPORT对象只NTMS_EJECT_STOPFor库。终止弹射过程lpEjectOperation规定之前超时事件1992-1993。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDAccess到一个或多个罗申对象被拒绝。
ERROR_INVALID_HANDLEThe价值hSession参数提供无效。
ERROR_INVALID_LIBRARYUnable检索数据库中的库定义。
ERROR_NO_SLOT_SETThis库没有一个清洁槽保留。
ERROR_NOT_CONNECTEDUnable连接到RSM服务。
ERROR_SLOT_EMPTYA清洁插槽是保留,但已经是空的。
ERROR_SLOT_NOT_PRESENTA清洁槽槽保留,但目前没有在库安装。此错误发生时至少有一个杂志是从库中失踪。
ERROR_SUCCESSThe功能是成功的。
备注
该EjectNtmsCleaner函数返回到如弹出要求尽快申请排队。
如果在EjectNtmsCleaner函数中指定的库有一个NTMS_IEPORT对象,罗申使用NTMS_IEPORT对象弹出清洁。如果没有NTMS_IEPORT对象,NTMS_IEDOOR对象用于使得运营商能够获得更洁净的插槽。
跳伞清洁墨盒没有跟踪在脱机库。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
清洁管理职能
CleanNtmsDrive
InjectNtmsCleaner
ReleaseNtmsCleanerSlot
ReserveNtmsCleanerSlot
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==EjectNtmsCleaner Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The EjectNtmsCleaner function ejects the cleaning cartridge from the currently reserved cleaner slot.
Syntax
C++
DWORD EjectNtmsCleaner(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibrary,
__inout LPNTMS_GUID lpEjectOperation,
__in DWORD dwAction
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpLibrary [in]
Unique identifier of a library object.
lpEjectOperation [in, out]
GUID of the eject process library operation. If dwAction is NTMS_EJECT_START, this parameter receives the GUID for the operation. If dwAction is NTMS_EJECT_STOP, this parameter must be set to the GUID for the operation to be stopped.
dwAction [in]
Action to perform. This parameter can be either one of the following values.
ValueMeaning
NTMS_EJECT_STARTStarts the eject operation with a port. The specified medium is ejected until the time-out event occurs or the function is called again with NTMS_EJECT_STOP. The time-out value is specified in the library object and is applied to all ejections in the library.
NTMS_EJECT_STOPFor libraries with NTMS_IEPORT objects only. Terminates the ejection process specified by lpEjectOperation prior to the time-out event lapsing.

Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDAccess to one or more RSM objects is denied.
ERROR_INVALID_HANDLEThe value supplied in the hSession parameter is not valid.
ERROR_INVALID_LIBRARYUnable to retrieve the library definition from the database.
ERROR_NO_SLOT_SETThis library does not have a cleaner slot reserved.
ERROR_NOT_CONNECTEDUnable to connect to the RSM service.
ERROR_SLOT_EMPTYA cleaner slot is reserved but is already empty.
ERROR_SLOT_NOT_PRESENTA cleaner slot is reserved but the slot is currently not installed in the library. This error occurs when at least one magazine is missing from the library.
ERROR_SUCCESSThe function was successful.

Remarks
The EjectNtmsCleaner function returns to the application as soon as the eject request is queued.
If the library specified in the EjectNtmsCleaner function has an NTMS_IEPORT object, RSM uses the NTMS_IEPORT object to eject the cleaner. If there is no NTMS_IEPORT object, the NTMS_IEDOOR object is used to allow the operator to gain access to the cleaner slot.
Ejected cleaner cartridges are not tracked in the offline library.
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
InjectNtmsCleaner
ReleaseNtmsCleanerSlot
ReserveNtmsCleanerSlot
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb525503(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 11:29:05