网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhgetcountertimebase
释义 PdhGetCounterTimeBase
语法:
C++
PDH_STATUS PdhGetCounterTimeBase(
__in PDH_HCOUNTER hCounter,
__out LONGLONG *pTimeBase
);
PdhGetCounterTimeBase功能
返回时基指定柜台。
参数
hCounter [in]
句柄计数器。该PdhAddCounter函数返回此句柄。
pTimeBase [out]
时基,指定性能数字值每秒反样本。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_INVALID_ARGUMENTThe指定的计数器不使用时基。
PDH_INVALID_HANDLEThe计数器句柄无效。
备注
如果您使用PdhFormatFromRawValue函数来计算显示的值,而不是调用PdhCalculateCounterFromRawValue功能,您必须调用PdhGetCounterTimeBase函数来检索时基。
每个计数器,它返回的时间为基础的业绩数据的时间为它定义的基础。时间计数器的基础是多少次反样本的数据每秒。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhFormatFromRawValue
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhGetCounterTimeBase Function
Returns the time base of the specified counter.
Syntax
C++
PDH_STATUS PdhGetCounterTimeBase(
__in PDH_HCOUNTER hCounter,
__out LONGLONG *pTimeBase
);
Parameters
hCounter [in]
Handle to the counter. The PdhAddCounter function returns this handle.
pTimeBase [out]
Time base that specifies the number of performance values a counter samples per second.
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 are possible values.
Return codeDescription
PDH_INVALID_ARGUMENTThe specified counter does not use a time base.
PDH_INVALID_HANDLEThe counter handle is not valid.

Remarks
If you use the PdhFormatFromRawValue function to calculate a displayable value instead of calling the PdhCalculateCounterFromRawValue function, you must call the PdhGetCounterTimeBase function to retrieve the time base.
Each counter that returns time-based performance data has a time base defined for it. The time base of a counter is the number of times a counter samples data per second.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhFormatFromRawValue
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372615(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:24:08