网站首页  计算机词典

请输入您要查询的字词:

 

字词 pdhopenquery
释义 PdhOpenQuery
语法:
C++
PDH_STATUS PdhOpenQuery(
__in LPCTSTR szDataSource,
__in DWORD_PTR dwUserData,
__out PDH_HQUERY *phQuery
);
PdhOpenQuery功能
创建一个新的查询,用于管理的性能数据集合。
要使用句柄数据源,使用PdhOpenQueryH功能。
参数
szDataSource [in]
NULL结尾的字符串指定的日志文件中,检索性能数据的名称。如果为NULL,性能数据收集实时的数据源。
dwUserData [in]
用户定义的值和这项查询。要检索的用户数据后,调用PdhGetCounterInfo和访问的PDH_COUNTER_INFO dwQueryUserData成员。
phQuery [out]
句柄查询。您可以使用该句柄在随后的电话。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。
实例
有关示例,请参见读取日志文件或写入性能数据性能数据到一个日志文件。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode和ANSI namesPdhOpenQueryW(Unicode)和PdhOpenQueryA(ANSI)的
参见
PdhCloseQuery
PdhGetCounterInfo
PdhIsRealTimeQuery
PdhOpenQueryH
PdhSetDefaultRealTimeDataSource
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhOpenQuery Function
Creates a new query that is used to manage the collection of performance data.
To use handles to data sources, use the PdhOpenQueryH function.
Syntax
C++
PDH_STATUS PdhOpenQuery(
__in LPCTSTR szDataSource,
__in DWORD_PTR dwUserData,
__out PDH_HQUERY *phQuery
);
Parameters
szDataSource [in]
Null-terminated string that specifies the name of the log file from which to retrieve performance data. If NULL, performance data is collected from a real-time data source.
dwUserData [in]
User-defined value to associate with this query. To retrieve the user data later, call PdhGetCounterInfo 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 .
Examples
For an example, see Reading Performance Data from a Log File or Writing Performance Data to a Log File .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode and ANSI namesPdhOpenQueryW (Unicode) and PdhOpenQueryA (ANSI)
See Also
PdhCloseQuery
PdhGetCounterInfo
PdhIsRealTimeQuery
PdhOpenQueryH
PdhSetDefaultRealTimeDataSource
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372652(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:43:49