网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhopenqueryh
释义 PdhOpenQueryH
语法:
C++
PDH_STATUS PdhOpenQueryH(
__in PDH_HLOG hDataSource,
__in DWORD_PTR dwUserData,
__out PDH_HQUERY *phQuery
);
PdhOpenQueryH功能
创建一个新的查询,用于管理的性能数据集合。
此功能是相同的PdhOpenQuery功能,除了它支持使用句柄数据源。
参数
hDataSource [in]
处理到数据源的PdhBindInputDataSource函数返回。
dwUserData [in]
用户定义的值和这项查询。要检索的用户数据后,调用PdhGetCounterInfo功能和访问的PDH_COUNTER_INFO dwQueryUserData成员。
phQuery [out]
句柄查询。您可以使用该句柄在随后的电话。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhBindInputDataSource
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhOpenQueryH Function
Creates a new query that is used to manage the collection of performance data.
This function is identical to the PdhOpenQuery function, except that it supports the use of handles to data sources.
Syntax
C++
PDH_STATUS PdhOpenQueryH(
__in PDH_HLOG hDataSource,
__in DWORD_PTR dwUserData,
__out PDH_HQUERY *phQuery
);
Parameters
hDataSource [in]
Handle to a data source returned by the PdhBindInputDataSource function.
dwUserData [in]
User-defined value to associate with this query. To retrieve the user data later, call the PdhGetCounterInfo function and access the dwQueryUserData member of PDH_COUNTER_INFO .
phQuery [out]
Handle to the query. You use this handle in subsequent calls.
Return Value
If the function succeeds, it returns ERROR_SUCCESS.
If the function fails, the return value is a system error code or a PDH error code .
Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhBindInputDataSource
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372654(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:22:27