网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhlookupperfindexbyname
释义 PdhLookupPerfIndexByName
语法:
C++
PDH_STATUS PdhLookupPerfIndexByName(
__in LPCTSTR szMachineName,
__in LPCTSTR szNameBuffer,
__out LPDWORD pdwIndex
);
PdhLookupPerfIndexByName功能
返回柜台指数对应指定的计数器的名称。
参数
szMachineName [in]
NULL结尾的字符串,指定的计算机的名称在指定柜台的位置。计算机的名称,可以指定的DNS名称或IP地址。如果为NULL,该函数使用本地计算机。
szNameBuffer [in]
null结尾的字符串,其中包含计数器的名称。
pdwIndex [out]
指数计数器。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。下面是一个可能的值。
返回codeDescription
PDH_INVALID_ARGUMENTA参数无效或格式不正确。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode和ANSI namesPdhLookupPerfIndexByNameW(Unicode)和PdhLookupPerfIndexByNameA(ANSI)的
参见
PdhLookupPerfNameByIndex
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhLookupPerfIndexByName Function
Returns the counter index corresponding to the specified counter name.
Syntax
C++
PDH_STATUS PdhLookupPerfIndexByName(
__in LPCTSTR szMachineName,
__in LPCTSTR szNameBuffer,
__out LPDWORD pdwIndex
);
Parameters
szMachineName [in]
Null-terminated string that specifies the name of the computer where the specified counter is located. The computer name can be specified by the DNS name or the IP address. If NULL, the function uses the local computer.
szNameBuffer [in]
Null-terminated string that contains the counter name.
pdwIndex [out]
Index of the counter.
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_ARGUMENTA parameter is not valid or is incorrectly formatted.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode and ANSI namesPdhLookupPerfIndexByNameW (Unicode) and PdhLookupPerfIndexByNameA (ANSI)
See Also
PdhLookupPerfNameByIndex
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372647(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:25:09