术语 | openntmsnotification |
释义 | OpenNtmsNotification 语法: C++ HANDLE OpenNtmsNotification( __in HANDLE hSession, __in DWORD dwType ); OpenNtmsNotification功能 [移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。] 该OpenNtmsNotification函数打开一个通道接收罗申对象指定类型的对象更改通知。 参数 hSession [in] 处理由OpenNtmsSession函数返回的会议。 dwType [in] 丹参的通知的对象类型。对于一个值列表,请参见NtmsObjectsTypes。 返回值 该OpenNtmsNotification函数返回通知的句柄传递给WaitForNtmsNotification或CloseNtmsNotification功能。 对于扩展的错误信息,调用GetLastError函数。这个函数可以返回下列值之一。 ValueMeaning ERROR_ACCESS_DENIEDNTMS_USE_ACCESS计算机被拒绝。其他安全错误也是可能的,但它们都将意味着安全子系统的错误。 Windows XP/2000操作系统:没有访问权限是必需的。 ERROR_DATABASE_FAILUREThe数据库查询或更新失败。 ERROR_INVALID_HANDLEThe价值hSession参数指定为NULL或无效。 ERROR_NOT_CONNECTEDUnable连接到RSM服务。 ERROR_SUCCESSThe功能是成功的。 INVALID_HANDLE_VALUEThe函数失败。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 客户端 支持 Windows Vista 服务器 支持 Windows Server 2008 HeaderNtmsapi.h LibraryNtmsapi.lib DLLNtmsapi.dll 参见 数据库通知功能 CloseNtmsNotification WaitForNtmsNotification 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==OpenNtmsNotification Function [ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.] The OpenNtmsNotification function opens a channel to receive RSM object change notifications for objects of the specified type. Syntax C++ HANDLE OpenNtmsNotification( __in HANDLE hSession, __in DWORD dwType ); Parameters hSession [in] Handle to the session returned by the OpenNtmsSession function. dwType [in] RSM object type for notification. For a list of values, see NtmsObjectsTypes . Return Value The OpenNtmsNotification function returns a notification handle that you pass to the WaitForNtmsNotification or CloseNtmsNotification functions. For extended error information, call the GetLastError function. This function can return one of the following values. ValueMeaning ERROR_ACCESS_DENIEDNTMS_USE_ACCESS to the computer is denied. Other security errors are also possible, but they would indicate a security subsystem error. Windows XP/2000: No access rights are required. ERROR_DATABASE_FAILUREThe database query or update failed. ERROR_INVALID_HANDLEThe value specified in the hSession parameter is NULL or is not valid. ERROR_NOT_CONNECTEDUnable to connect to the RSM service. ERROR_SUCCESSThe function was successful. INVALID_HANDLE_VALUEThe function failed. 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 Database Notification Functions CloseNtmsNotification WaitForNtmsNotification Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/bb540720(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。