网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhsetcounterscalefactor
释义 PdhSetCounterScaleFactor
语法:
C++
PDH_STATUS PdhSetCounterScaleFactor(
__in PDH_HCOUNTER hCounter,
__in LONG lFactor
);
PdhSetCounterScaleFactor功能
设置比例因子应用到指定的计数器计算值当您请求的格式计数器的值。如果PDH_FMT_NOSCALE标志被设置,那么这种规模的因素被忽略。
参数
hCounter [in]
处理反申请的规模因素。该PdhAddCounter函数返回此句柄。
lFactor [in]
对10台,其中繁殖,然后返回它的计算值。该参数的最低值是PDH_MIN_SCALE(-7),在返回的值是实际值乘以10-7。这个参数的最大值为PDH_MAX_SCALE(7),在返回的值是实际值乘以10 +7。值为零将设置规模之一,因此,实际的返回值。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_INVALID_ARGUMENTThe规模值超出范围。
PDH_INVALID_HANDLEThe计数器句柄无效。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhCalculateCounterFromRawValue
PdhComputeCounterStatistics
PdhGetFormattedCounterValue
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhSetCounterScaleFactor Function
Sets the scale factor that is applied to the calculated value of the specified counter when you request the formatted counter value. If the PDH_FMT_NOSCALE flag is set, then this scale factor is ignored.
Syntax
C++
PDH_STATUS PdhSetCounterScaleFactor(
__in PDH_HCOUNTER hCounter,
__in LONG lFactor
);
Parameters
hCounter [in]
Handle of the counter to apply the scale factor to. The PdhAddCounter function returns this handle.
lFactor [in]
Power of ten by which to multiply the calculated value before returning it. The minimum value of this parameter is PDH_MIN_SCALE (–7), where the returned value is the actual value multiplied by 10–7. The maximum value of this parameter is PDH_MAX_SCALE (+7), where the returned value is the actual value multiplied by 10+7. A value of zero will set the scale to one, so that the actual value is returned.
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 scale value is out of range.
PDH_INVALID_HANDLEThe counter handle is not valid.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhCalculateCounterFromRawValue
PdhComputeCounterStatistics
PdhGetFormattedCounterValue
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372673(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:21:27