网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhsetdefaultrealtimedatasource
释义 PdhSetDefaultRealTimeDataSource
语法:
C++
PDH_STATUS PdhSetDefaultRealTimeDataSource(
__in DWORD dwDataSourceId
);
PdhSetDefaultRealTimeDataSource功能
指定的实时数据源。
参数
dwDataSourceId [in]
源的性能数据。此参数可以是下列值之一。
ValueMeaning
DATA_SOURCE_REGISTRYThe数据源注册表接口。这是默认的。
DATA_SOURCE_WBEMThe数据源是一个WMI提供程序。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。下面是一个可能的值。
返回codeDescription
PDH_INVALID_ARGUMENTThe参数无效。
备注
这个词的实时如在使用这个函数的描述并不意味着它的实质,时间标准的含义。相反,它描述了从提供最新信息的来源(例如性能数据的收集,登记或WMI提供程序),而不是从一个日志文件。
如果您想查询实时从WMI数据时,必须调用PdhSetDefaultRealTimeDataSource设置默认的实时数据源。您必须在调用调用任何其他的PDH API函数,这个函数。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhSelectDataSource
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhSetDefaultRealTimeDataSource Function
Specifies the source of the real-time data.
Syntax
C++
PDH_STATUS PdhSetDefaultRealTimeDataSource(
__in DWORD dwDataSourceId
);
Parameters
dwDataSourceId [in]
Source of the performance data. This parameter can be one of the following values.
ValueMeaning
DATA_SOURCE_REGISTRYThe data source is the registry interface. This is the default.
DATA_SOURCE_WBEMThe data source is a WMI provider.

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 . The following is a possible value.
Return codeDescription
PDH_INVALID_ARGUMENTThe parameter is not valid.

Remarks
The term real-time as used in the description of this function does not imply the standard meaning of the term real-time. Instead, it describes the collection of performance data from a source providing current information (for example, the registry or a WMI provider) rather than from a log file.
If you want to query real-time data from WMI, you must call PdhSetDefaultRealTimeDataSource to set the default real-time data source. You must call this function before calling any other PDH API function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhSelectDataSource
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372674(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:24:49