public class PdhUtilXP extends Object
| Constructor and Description |
|---|
PdhUtilXP() |
| Modifier and Type | Method and Description |
|---|---|
static String |
PdhLookupPerfNameByIndex(String szMachineName,
int dwNameIndex)
Utility method to call Pdh's PdhLookupPerfNameByIndex that allocates the
required memory for the szNameBuffer parameter based on the type mapping
used, calls to PdhLookupPerfNameByIndex, and returns the received string.
|
public static String PdhLookupPerfNameByIndex(String szMachineName, int dwNameIndex)
szMachineName - Null-terminated string that specifies the name of the computer
where the specified performance object or 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.dwNameIndex - Index of the performance object or counter.Copyright © 2010–2019 oshi. All rights reserved.