网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhvalidatepathex
释义 PdhValidatePathEx
语法:
C++
PDH_STATUS PdhValidatePathEx(
__in_opt PDH_HLOG hDataSource,
__in LPCTSTR szFullPathBuffer
);
PdhValidatePathEx功能
验证指定的计数器在计算机上或在日志文件中。
参数
hDataSource [中,可选]
处理的数据源。在PdhOpenLog和PdhBindInputDataSource函数返回此句柄。
为了验证该计数器目前在本地计算机上,请指定空(这是与调用PdhValidatePath相同)。
szFullPathBuffer [in]
null结尾的字符串,指定计数器路径来验证。计数器的路径的最大长度为PDH_MAX_COUNTER_PATH。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_CSTATUS_NO_INSTANCEThe性能对象指定的实例没有找到。
PDH_CSTATUS_NO_COUNTERThe指定的计数器没有发现在性能对象。
PDH_CSTATUS_NO_OBJECTThe指定的性能对象未找到计算机上或在日志文件中。
PDH_CSTATUS_NO_MACHINEThe指定的计算机无法找到或连接。
PDH_CSTATUS_BAD_COUNTERNAMEThe计数器路径字符串无法解析。
PDH_MEMORY_ALLOCATION_FAILUREThe功能是无法分配一个必需的临时缓冲区。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode和ANSI namesPdhValidatePathExW(Unicode)和PdhValidatePathExA(ANSI)的
参见
PdhMakeCounterPath
PdhValidatePath
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhValidatePathEx Function
Validates that the specified counter is present on the computer or in the log file.
Syntax
C++
PDH_STATUS PdhValidatePathEx(
__in_opt PDH_HLOG hDataSource,
__in LPCTSTR szFullPathBuffer
);
Parameters
hDataSource [in, optional]
Handle to the data source. The PdhOpenLog and PdhBindInputDataSource functions return this handle.
To validate that the counter is present on the local computer, specify NULL (this is the same as calling PdhValidatePath ).
szFullPathBuffer [in]
Null-terminated string that specifies the counter path to validate. The maximum length of a counter path is PDH_MAX_COUNTER_PATH.
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_CSTATUS_NO_INSTANCEThe specified instance of the performance object was not found.
PDH_CSTATUS_NO_COUNTERThe specified counter was not found in the performance object.
PDH_CSTATUS_NO_OBJECTThe specified performance object was not found on the computer or in the log file.
PDH_CSTATUS_NO_MACHINEThe specified computer could not be found or connected to.
PDH_CSTATUS_BAD_COUNTERNAMEThe counter path string could not be parsed.
PDH_MEMORY_ALLOCATION_FAILUREThe function is unable to allocate a required temporary buffer.

Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode and ANSI namesPdhValidatePathExW (Unicode) and PdhValidatePathExA (ANSI)
See Also
PdhMakeCounterPath
PdhValidatePath
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372992(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:28