网站首页  词典首页

请输入您要查询的函数:

 

术语 identifyntmsslot
释义 IdentifyNtmsSlot
语法:
C++
DWORD IdentifyNtmsSlot(
__in HANDLE hSession,
__in LPNTMS_GUID lpSlotID,
__in DWORD dwOption
);
IdentifyNtmsSlot功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该IdentifyNtmsSlot功能可识别在指定的时段在库的媒体。该命令返回时识别完成。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
lpSlotID [in]
槽对象的唯一标识符来确定。
dwOption [in]
此参数可以是下列值之一。
ValueMeaning
NTMS_DISMOUNT_DEFERREDLeave在驱动器后,媒体的身份完成的媒体,仿佛已经与“延迟”选项卸载。
NTMS_DISMOUNT_IMMEDIATEDismount的身份后,媒体在驱动器中的媒体已经完成。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_ACCESS_DENIEDAccess到一个或多个罗申对象被拒绝。
ERROR_INVALID_HANDLEThe价值hSession参数中指定无效。
ERROR_INVALID_PARAMETERThe插槽ID或dwOption是无效的。
ERROR_SUCCESSThe功能是成功的。
备注
如果插槽是空的函数返回ERROR_SUCCESS,但没有记录的新媒体出现。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
库控制功能
InventoryNtmsLibrary
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==IdentifyNtmsSlot Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The IdentifyNtmsSlot function identifies the media in the specified slot in a library. The command returns when the identification is complete.
Syntax
C++
DWORD IdentifyNtmsSlot(
__in HANDLE hSession,
__in LPNTMS_GUID lpSlotID,
__in DWORD dwOption
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
lpSlotID [in]
Unique identifier of the slot object to be identified.
dwOption [in]
This parameter can be one of the following values.
ValueMeaning
NTMS_DISMOUNT_DEFERREDLeave the media in the drive after the media identification is complete, as if it had been dismounted with the "deferred" option.
NTMS_DISMOUNT_IMMEDIATEDismount the media in the drive after the media identification is complete.

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 specified in the hSession parameter is not valid.
ERROR_INVALID_PARAMETERThe slot ID or the dwOption is not valid.
ERROR_SUCCESSThe function was successful.

Remarks
If the slot is empty the function returns ERROR_SUCCESS, but no new media records appear.
Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
End of client supportWindows Vista
End of server supportWindows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
See Also
Library Control Functions
InventoryNtmsLibrary
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540682(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:21:21