网站首页  词典首页

请输入您要查询的函数:

 

术语 accessntmslibrarydoor
释义 AccessNtmsLibraryDoor
语法:
C++
DWORD AccessNtmsLibraryDoor(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibraryId,
__in DWORD dwAction
);
AccessNtmsLibraryDoor功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该AccessNtmsLibraryDoor函数解锁指定的库。如果库忙,申请排队请求,并返回成功。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpLibraryId [in]
唯一标识符库对象。这个库必须支持门禁。
dwAction [in]
要执行的动作。此参数可以是下列值之一。
ValueMeaning
NTMS_INVENTORY_NONEAfter用户关闭了大门,没有存货进行。但是,如果安装标签检查失败,库存将被执行。
NTMS_INVENTORY_OMIDAfter用户关闭了大门,一个全面的媒体清单执行。这可能会非常耗时,因为每一个每个媒介方必须安装。
NTMS_INVENTORY_FASTIf库有一个条形码阅读器,这标志使条形码清单执行。如果库没有条形码阅读器,此标志会导致不同的库存要执行。检查的OMIDs在放置一个空档,而每个媒介大门是敞开的。
NTMS_INVENTORY_DEFAULTUse的InventoryMethod指定库中的对象(见NTMS_LIBRARYINFORMATION)。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDNTMS_CONTROL_ACCESS到库被拒绝。其他安全错误也是可能的,但它们都将意味着安全子系统的错误。
ERROR_DATABASE_FAILUREThe数据库无法访问或已损坏。
ERROR_DATABASE_FULLThe数据库已满。
ERROR_INVALID_HANDLEThe会话ID丢失或无效。
ERROR_INVALID_PARAMETERThe库ID丢失。
ERROR_LIBRARY_OFFLINEThe库ID引用没有门脱机库。
ERROR_NOT_ENOUGH_MEMORYAn分配在处理过程中出现故障。
ERROR_RESOURCE_DISABLEDThe库被禁用。
ERROR_RESOURCE_NOT_PRESENTThe库没有一门。
ERROR_SUCCESSDoor访问排队。
备注
有些库没有提供罗申方法以编程方式锁定和解锁的门。这个这些库函数是相同的行为与库RSM可以解锁和锁定行为。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
库控制功能
EjectNtmsMedia
InjectNtmsMedia
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==AccessNtmsLibraryDoor Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The AccessNtmsLibraryDoor function unlocks the door of the specified library. If the library is busy, RSM queues the request and returns successfully.
Syntax
C++
DWORD AccessNtmsLibraryDoor(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibraryId,
__in DWORD dwAction
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpLibraryId [in]
Unique identifier of the library object. This library must support door access.
dwAction [in]
Action to perform. This parameter can be one of the following values.
ValueMeaning
NTMS_INVENTORY_NONEAfter the user closes the door, no inventory is performed. However, if a mount-label check fails, an inventory will be performed.
NTMS_INVENTORY_OMIDAfter the user closes the door, a full on-media inventory is performed. This can be time consuming because each side of each medium must be mounted.
NTMS_INVENTORY_FASTIf the library has a bar-code reader installed, this flag causes bar-code inventory to be performed. If the library does not have a bar-code reader, this flag causes a differential inventory to be performed. The OMIDs are checked on each medium placed in an empty slot while the door is open.
NTMS_INVENTORY_DEFAULTUse the InventoryMethod specified in the library object (see NTMS_LIBRARYINFORMATION ).

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_DATABASE_FAILUREThe database is inaccessible or damaged.
ERROR_DATABASE_FULLThe database is full.
ERROR_INVALID_HANDLEThe session ID is missing or is not valid.
ERROR_INVALID_PARAMETERThe library ID is missing.
ERROR_LIBRARY_OFFLINEThe library ID references an offline library without a door.
ERROR_NOT_ENOUGH_MEMORYAn allocation failure occurred during processing.
ERROR_RESOURCE_DISABLEDThe library is disabled.
ERROR_RESOURCE_NOT_PRESENTThe library does not have a door.
ERROR_SUCCESSDoor access is queued.

Remarks
Some libraries provide no means for RSM to programmatically lock and unlock their doors. The behavior of this function with these libraries is identical to its behavior with libraries that RSM can unlock and lock.
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
Library Control Functions
EjectNtmsMedia
InjectNtmsMedia
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb525470(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:28:38