网站首页  词典首页

请输入您要查询的函数:

 

术语 setntmsdevicechangedetection
释义 SetNtmsDeviceChangeDetection
语法:
C++
DWORD SetNtmsDeviceChangeDetection(
__in HANDLE hSession,
__in HANDLE hDetectHandle,
__in LPNTMS_GUID lpObjectId,
__in DWORD dwType,
__in DWORD dwCount
);
SetNtmsDeviceChangeDetection功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该SetNtmsDeviceChangeDetection函数设置一个或更多的变化探测目标设备。
参数
hSession [in]
处理由OpenNtmsSession函数返回的会议。
hDetectHandle [in]
变化检测设备处理BeginNtmsDeviceChangeDetection,或NULL单个调查。
lpObjectId [in]
对象标识符目标设备。此参数可以是一个或多个库,媒体类型或GUID的物理媒体。所有的GUID必须是同一类型。
dwType [in]
键入在lpObjectId参数指定的对象标识符。此参数可以是从NtmsObjectsTypes枚举类型下面的值:NTMS_LIBRARY,NTMS_MEDIA_TYPE,或NTMS_PHYSICAL_MEDIA。
dwCount [in]
在lpObjectId数目对象标识符。
返回值
这个函数返回下列值之一。
ValueMeaning
ERROR_INVALID_HANDLEThe会议或检测句柄无效。
ERROR_INVALID_PARAMETERThe对象类型是无效的。
ERROR_INVALID_LIBRARYThe指定的库没有找到。
ERROR_INVALID_MEDIAThe指定的媒体或类型未找到。
ERROR_SUCCESSThe操作员请求已被取消。
备注
该设备可以直接通过指定的媒体或通过物理媒体类型的GUID库GUID或间接的影响。当使用间接规范,所有独立的库,可以包含媒体类型的媒体或发现。所有器件指定的继续,直到变化检测处理设备检测到使用EndNtmsDeviceChangeDetection关闭功能。
此功能也可以用来调查在指定的设备改变了媒体。这通常是使用用户界面打开时,叶子节点或执行刷新选项。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
参见
变化检测功能
BeginNtmsDeviceChangeDetection
EndNtmsDeviceChangeDetection
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==SetNtmsDeviceChangeDetection Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The SetNtmsDeviceChangeDetection function sets one or more target devices for change detection.
Syntax
C++
DWORD SetNtmsDeviceChangeDetection(
__in HANDLE hSession,
__in HANDLE hDetectHandle,
__in LPNTMS_GUID lpObjectId,
__in DWORD dwType,
__in DWORD dwCount
);
Parameters
hSession [in]
Handle to the session returned by the OpenNtmsSession function.
hDetectHandle [in]
Device change detection handle from BeginNtmsDeviceChangeDetection , or NULL for a single poll.
lpObjectId [in]
Object identifier for the target device. This parameter can be one or more library, media type, or physical media GUIDs. All GUIDs must be the same type.
dwType [in]
Type of object identifiers specified in the lpObjectId parameter. This parameter can be one of the following values from the NtmsObjectsTypes enumeration type: NTMS_LIBRARY, NTMS_MEDIA_TYPE, or NTMS_PHYSICAL_MEDIA.
dwCount [in]
Number of object identifiers in lpObjectId.
Return Value
This function returns one of the following values.
ValueMeaning
ERROR_INVALID_HANDLEThe session or detection handle is not valid.
ERROR_INVALID_PARAMETERThe object type is not valid.
ERROR_INVALID_LIBRARYThe specified library was not found.
ERROR_INVALID_MEDIAThe specified media or type was not found.
ERROR_SUCCESSThe operator request has been canceled.

Remarks
The device can be specified directly by passing library GUIDs or indirectly by passing physical media or media type GUIDs. When using the indirect specification, all stand-alone libraries that could contain the media or media type are detected. All devices specified continue to be detected until the device change detection handle is closed using the EndNtmsDeviceChangeDetection function.
This function can also be used to poll for changed media in the specified devices. This is typically used by a UI when opening a leaf node or implementing a refresh option.
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
Change Detection Functions
BeginNtmsDeviceChangeDetection
EndNtmsDeviceChangeDetection
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540741(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:27:35