PdhVbGetCounterPathFromList 函数
PdhVbGetCounterPathFromList 函数从用户最近调用 PdhVbCreateCounterPathList 函数创建的计数器路径列表中复制 Index 参数引用的计数器路径。
重要
本主题介绍的函数将来可能会更改或不可用。 相反,Microsoft 建议使用 性能计数器函数中所述的函数。
函数 PdhVbGetCounterPathFromList ( _ ByVal Index As Long, _ ByVal Buffer As String, _ ByVal BufferLength As Long _ ) As Long
参数
-
Index
-
要检索的计数器路径的索引。 该值必须大于或等于 1,并且小于或等于 PdhVbCreateCounterPathList 函数返回的值。
-
Buffer
-
将接收对应于 Index 参数值的计数器路径的维度和初始化字符串。
-
BufferLength
-
缓冲区引用的字符串中容纳的最大字符数。
返回值
函数返回复制到 Buffer 的字符数。
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
Windows XP [仅限桌面应用] |
最低受支持的服务器 |
Windows Server 2003 [仅限桌面应用] |
库 |
|
DLL |
|