网站首页  词典首页

请输入您要查询的函数:

 

术语 injectntmscleaner
释义 InjectNtmsCleaner
语法:
C++
DWORD InjectNtmsCleaner(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibrary,
__inout LPNTMS_GUID lpInjectOperation,
__out WORD dwNumberOfCleansLeft,
__in DWORD dwAction
);
InjectNtmsCleaner功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该InjectNtmsCleaner功能允许清洁墨盒纳入单位指定的库插入。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpLibrary [in]
唯一标识符的库对象。
lpInjectOperation [ in , out ]
插入的GUID库操作过程。如果dwAction是NTMS_INJECT_START,此参数接收的运作的GUID。如果dwAction是NTMS_INJECT_STOP,此参数必须设置为操作GUID来加以制止。
dwNumberOfCleansLeft [out]
数量上的清洗清洗磁带插入左周期。
dwAction [in]
此参数可以是下列值之一。
ValueMeaning
NTMS_INJECT_STARTStart插入,或者是NTMS_IEPORT或NTMS_IEDOOR对象。一个单一的清洁应插入磁带。如果NTMS_IEDOOR对象使用,不存在库存演将于库。
NTMS_INJECT_STOPTerminates插入之前超时事件1992-1993。 (对于端口库。)
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDAccess至少一个罗申对象被拒绝。
ERROR_DEVICE_NOT_AVAILABLEThe库当前未连接。
ERROR_INVALID_HANDLEThe价值hSession参数中指定无效。
ERROR_INVALID_LIBRARYUnable检索数据库中的库定义。
ERROR_LIBRARY_OFFLINEThe库必须为清洁的磁带插入网上。
ERROR_NO_SLOT_SETThis库已成为一个更清洁槽槽没有保留。
ERROR_SLOT_FULLA清洁插槽是保留,但已经有一个更清洁墨盒。在清洁筒必须先弹出,使用EjectNtmsCleaner功能。
ERROR_SLOT_NOT_PRESENTA清洁槽槽保留,但目前没有指定的在库安装。如果出现此错误至少有一个杂志是从库中失踪。
ERROR_SUCCESSThe功能是成功的。
备注
这个函数返回到只要插入要求尽快申请排队。
要使用InjectNtmsCleaner功能,还有清洁周期,清洁墨盒上仍然存在一些必须指定,使RSM可以保持它的轨道。
如果NTMS_IEPORT对象是可用的,NTMS_IEPORT对象指示墨盒目前保留清洁插槽。
如果没有NTMS_IEPORT对象,一门进行访问。在这种情况下,经营者指示放入保留时段媒体。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
清洁管理职能
CleanNtmsDrive
EjectNtmsCleaner
ReleaseNtmsCleanerSlot
ReserveNtmsCleanerSlot
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==InjectNtmsCleaner Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The InjectNtmsCleaner function allows a cleaner cartridge to be inserted into the specified library unit.
Syntax
C++
DWORD InjectNtmsCleaner(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibrary,
__inout LPNTMS_GUID lpInjectOperation,
__out WORD dwNumberOfCleansLeft,
__in DWORD dwAction
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpLibrary [in]
Unique identifier of a library object.
lpInjectOperation [in, out]
GUID of the insert process library operation. If dwAction is NTMS_INJECT_START, this parameter receives the GUID for the operation. If dwAction is NTMS_INJECT_STOP, this parameter must be set to the GUID for the operation to be stopped.
dwNumberOfCleansLeft [out]
Number of cleaning cycles left on the inserted cleaning cartridge.
dwAction [in]
This parameter can be one of the following values.
ValueMeaning
NTMS_INJECT_STARTStart 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_STOPTerminates the insertion prior to the time-out event lapsing. (For libraries with ports only.)

Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDAccess to at least one RSM object is denied.
ERROR_DEVICE_NOT_AVAILABLEThe library is not currently connected.
ERROR_INVALID_HANDLEThe value specified in the hSession parameter is not valid.
ERROR_INVALID_LIBRARYUnable to retrieve the library definition from the database.
ERROR_LIBRARY_OFFLINEThe library must be online for a cleaner cartridge to be inserted.
ERROR_NO_SLOT_SETThis library has no slot reserved as a cleaner slot.
ERROR_SLOT_FULLA cleaner slot is reserved but already has a cleaner cartridge. The cleaner cartridge must be ejected first, using the EjectNtmsCleaner function.
ERROR_SLOT_NOT_PRESENTA cleaner slot is reserved but the slot specified is currently not installed in the library. This error occurs if at least one magazine is missing from the library.
ERROR_SUCCESSThe function was successful.

Remarks
This function returns to the application as soon as the insert request is queued.
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.
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
ReleaseNtmsCleanerSlot
ReserveNtmsCleanerSlot
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540684(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 更新时间:2025/2/11 9:21:20