网站首页  词典首页

请输入您要查询的函数:

 

术语 counterpathcallback
释义 CounterPathCallBack
语法:
C++
PDH_STATUS __stdcall CounterPathCallBack(
__in DWORD_PTR dwArg
);
CounterPathCallBack回调函数
应用实施CounterPathCallBack函数来处理的计数器路径由浏览对话框返回的字符串。
参数
dwArg [in]
用户定义的值通过浏览对话框的回调函数。您设置在PDH_BROWSE_DLG_CONFIG结构dwCallBackArg成员此值。
返回值
返回ERROR_SUCCESS如果函数成功。
如果函数失败因暂时的错误,您可以返回PDH_RETRY和PDH会立即调用回调。
否则,返回相应的错误代码。错误代码是传递回调用的PdhBrowseCounters。
备注
该PDH_BROWSE_DLG_CONFIG结构的下列成员是用来沟通的回调函数:
szReturnPathBuffer
包含计数器路径字符串,用户选择。
cchReturnPathLength
包含szReturnPathBuffer成员的最大大小。如果回调函数重新分配一个新的缓冲区,但也必须更新此值。
CallBackStatus
对进入回调函数,这个成员包含路径缓冲区的状态。在退出时,回调函数设置的状态值的处理结果。
如果浏览器设置此成员ERROR_SUCCESS,那么szReturnPathBuffer成员包含一个有效的反路径或计数器路径列表。
如果缓冲区太小,无法加载当前选择,浏览器会将此值设置为PDH_MORE_DATA。分配一个更大的szReturnPathBuffer缓冲区并返回PDH_RETRY。

要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
参见
PdhBrowseCounters
PDH_BROWSE_DLG_CONFIG
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==CounterPathCallBack Callback Function
Applications implement the CounterPathCallBack function to process the counter path strings returned by the Browse dialog box.
Syntax
C++
PDH_STATUS __stdcall CounterPathCallBack(
__in DWORD_PTR dwArg
);
Parameters
dwArg [in]
User-defined value passed to the callback function by the Browse dialog box. You set this value in the dwCallBackArg member of the PDH_BROWSE_DLG_CONFIG structure.
Return Value
Return ERROR_SUCCESS if the function succeeds.
If the function fails due to a transient error, you can return PDH_RETRY and PDH will call your callback immediately.
Otherwise, return an appropriate error code. The error code is passed back to the caller of PdhBrowseCounters .
Remarks
The following members of the PDH_BROWSE_DLG_CONFIG structure are used to communicate with the callback function:
szReturnPathBuffer
Contains the counter path strings that the user selected.
cchReturnPathLength
Contains the maximum size of the szReturnPathBuffer member. If the callback function reallocates a new buffer, it must also update this value.
CallBackStatus
On entry to the callback function, this member contains the status of the path buffer. On exit, the callback function sets the status value resulting from processing.
If the browser sets this member to ERROR_SUCCESS, then the szReturnPathBuffer member contains a valid counter path or counter path list.
If the buffer is too small to load the current selection, the browser will set this value to PDH_MORE_DATA. Allocate a larger szReturnPathBuffer buffer and return PDH_RETRY.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
See Also
PdhBrowseCounters
PDH_BROWSE_DLG_CONFIG
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa371919(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:26:17