网站首页  词典首页

请输入您要查询的函数:

 

术语 inventoryntmslibrary
释义 InventoryNtmsLibrary
语法:
C++
DWORD InventoryNtmsLibrary(
__in HANDLE hSession,
__in LPNTMS_GUID lpLibraryId,
__in DWORD dwAction
);
InventoryNtmsLibrary功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
排队的InventoryNtmsLibrary函数的一个指定的库清单。如果库繁忙,罗申队列InventoryNtmsLibrary和返回成功。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpLibraryId [in]
唯一标识符的库对象。
dwAction [in]
要执行的动作。此参数可以是下列值之一。
ValueMeaning
NTMS_INVENTORY_OMIDA充分的媒体存货进行。每个媒介每一方必须安装到一个驱动器。这是一个耗时的过程。
NTMS_INVENTORY_FASTIf库有一个条形码阅读器,这标志使条形码清单执行。 If the library does not have a bar-code reader, this flag causes a differential inventory to be performed (slots are classified).
NTMS_INVENTORY_DEFAULTUse的InventoryMethod指定库中的对象(见NTMS_LIBRARYINFORMATION)。
NTMS_INVENTORY_STOPStop在指定的库现有库存。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDAccess到一个或多个罗申对象被拒绝。
ERROR_DEVICE_NOT_AVAILABLEThe库当前未连接。
ERROR_INVALID_HANDLEThe价值hSession参数中指定无效。
ERROR_INVALID_LIBRARYThe库脱机库。
ERROR_INVALID_PARAMETERThe库ID或会话ID是无效的。
ERROR_NOT_CONNECTEDUnable连接到RSM服务。
ERROR_SUCCESSThe功能是成功的。
备注
不存在库不能被清查。
该InventoryNtmsLibrary函数标记所有的时段,目前包含在库中的分类/识别。该InventoryNtmsLibrary函数返回时,所有媒体的特点。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
库控制功能
AccessNtmsLibraryDoor
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==InventoryNtmsLibrary Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The InventoryNtmsLibrary function queues an inventory of the specified library. If the library is busy, RSM queues InventoryNtmsLibrary and returns success.
Syntax
C++
DWORD InventoryNtmsLibrary(
__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 a library object.
dwAction [in]
Action to perform. This parameter can be one of the following values.
ValueMeaning
NTMS_INVENTORY_OMIDA full on-media inventory is performed. Each side of each medium must be mounted into a drive. This is a time consuming process.
NTMS_INVENTORY_FASTIf the library has a bar-code reader installed, this flag causes a 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 (slots are classified).
NTMS_INVENTORY_DEFAULTUse the InventoryMethod specified in the library object (see NTMS_LIBRARYINFORMATION ).
NTMS_INVENTORY_STOPStop the current inventory in the specified library.

Return Value
This function returns one of the following values.
ValueMeaning
ERROR_ACCESS_DENIEDAccess to one or more RSM objects 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_LIBRARYThe library is the offline library.
ERROR_INVALID_PARAMETERThe library ID or session ID is not valid.
ERROR_NOT_CONNECTEDUnable to connect to the RSM service.
ERROR_SUCCESSThe function was successful.

Remarks
Not present libraries cannot be inventoried.
The InventoryNtmsLibrary function marks all the slots that currently contain a medium in the library for classification/identification. The InventoryNtmsLibrary function returns when all the media is marked.
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
AccessNtmsLibraryDoor
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540687(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:19:05