网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhgetrawcountervalue
释义 PdhGetRawCounterValue
语法:
C++
PDH_STATUS PdhGetRawCounterValue(
__in PDH_HCOUNTER hCounter,
__out LPDWORD lpdwType,
__out PPDH_RAW_COUNTER pValue
);
PdhGetRawCounterValue功能
返回当前原材料价值计数器。
参数
hCounter [in]
处理反从中检索当前原始值。该PdhAddCounter函数返回此句柄。
lpdwType [out]
接收计数器类型。对于反类型的列表,请参阅在Windows Server 2003部署工具包计数器类型部分。此参数是可选的。
pValue [out]
阿PDH_RAW_COUNTER结构,接收计数器的值。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_INVALID_ARGUMENTA参数无效或格式不正确。
PDH_INVALID_HANDLEThe计数器句柄无效。
备注
该计数器的数据被锁定(保护的通话时间),以PdhGetRawCounterValue,防止在呼叫处理的任何变化。
如果指定的计数器实例不存在,此函数将返回ERROR_SUCCESS和PDH_RAW_COUNTER结构CStatus成员将包含PDH_CSTATUS_NO_INSTANCE。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhGetFormattedCounterValue
PdhCalculateCounterFromRawValue
PdhCollectQueryData
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhGetRawCounterValue Function
Returns the current raw value of the counter.
Syntax
C++
PDH_STATUS PdhGetRawCounterValue(
__in PDH_HCOUNTER hCounter,
__out LPDWORD lpdwType,
__out PPDH_RAW_COUNTER pValue
);
Parameters
hCounter [in]
Handle of the counter from which to retrieve the current raw value. The PdhAddCounter function returns this handle.
lpdwType [out]
Receives the counter type. For a list of counter types, see the Counter Types section of the Windows Server 2003 Deployment Kit . This parameter is optional.
pValue [out]
A PDH_RAW_COUNTER structure that receives the counter value.
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_ARGUMENTA parameter is not valid or is incorrectly formatted.
PDH_INVALID_HANDLEThe counter handle is not valid.

Remarks
The data for the counter is locked (protected) for the duration of the call to PdhGetRawCounterValue to prevent any changes during processing of the call.
If the specified counter instance does not exist, this function will return ERROR_SUCCESS and the CStatus member of the PDH_RAW_COUNTER structure will contain PDH_CSTATUS_NO_INSTANCE.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhGetFormattedCounterValue
PdhCalculateCounterFromRawValue
PdhCollectQueryData
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372644(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:27:01