网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhremovecounter
释义 PdhRemoveCounter
语法:
C++
PDH_STATUS PdhRemoveCounter(
__in PDH_HCOUNTER hCounter
);
PdhRemoveCounter功能
从查询中删除计数器。
参数
hCounter [in]
处理反删除其查询。该PdhAddCounter函数返回此句柄。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。
下面是一个可能的值。
返回codeDescription
PDH_INVALID_HANDLEThe计数器句柄无效。
备注
不要使用反删除处理后,从查询柜台。
下面显示了语法,如果从Visual Basic中调用这个函数。
PdhRemoveCounter(
ByVal CounterHandle as Long
)
如龙
QueryHandle
[in]标识反删除。该PdhVbAddCounter函数返回的标识符。

要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhAddCounter
PdhOpenQuery
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhRemoveCounter Function
Removes a counter from a query.
Syntax
C++
PDH_STATUS PdhRemoveCounter(
__in PDH_HCOUNTER hCounter
);
Parameters
hCounter [in]
Handle of the counter to remove from its query. The PdhAddCounter function returns this handle.
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_HANDLEThe counter handle is not valid.

Remarks
Do not use the counter handle after removing the counter from the query.
The following shows the syntax if calling this function from Visual Basic.
PdhRemoveCounter(
ByVal CounterHandle as Long
)
as Long
QueryHandle
[in] Identifies the counter to remove. The PdhVbAddCounter function returns the identifier.

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