| Modifier and Type | Class and Description |
|---|---|
| public static class | Pdh.PDH_COUNTER_PATH_ELEMENTS
Components of a counter path |
| public static class | Pdh.PDH_RAW_COUNTER
The data as it was collected from the counter provider. |
| public static class | Pdh.PDH_TIME_INFO
Information on time intervals as applied to the sampling of performance data. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Pdh | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | PDH_MAX_COUNTER_NAME
Maximum counter name length. |
| public static final int | PDH_MAX_COUNTER_PATH
Maximum full counter path length. |
| public static final int | PDH_MAX_DATASOURCE_PATH
Maximum full counter log name length. |
| public static final int | PDH_MAX_INSTANCE_NAME
Maximum counter instance name length. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: ERROR_SUCCESS if successfulHandle to the query to which you want to add the counter. hQuery,String that contains the counter path.
The maximum length of a counter path is szFullCounterPath, BaseTSD.PDH_MAX_COUNTER_PATH.User-defined value. dwUserData,(Out) Handle to the counter that was added to the query. phCounterAdds the specified counter to the query. |
| public int | PdhAddEnglishCounter(WinNT.
|
| public int | Returns: ERROR_SUCCESS if successfulHandle to the query to close. hQueryCloses all counters contained in the specified query, closes all handles related to the query, and frees all memory associated with the query. |
| public int | Returns: ERROR_SUCCESS if successfulHandle to the query hQueryCollects the current raw data value for all counters in the specified query and updates the status code of each counter. |
| public int | Returns: ERROR_SUCCESS if successfulHandle to the query hQuery,Time interval to wait, in seconds. dwIntervalTime, WinNT.Handle to the event that you want PDH to signal after
the time interval expires. To create an event object, call the
hNewDataEventKernel32#CreateEvent(com.
functionUses a separate thread to collect the current raw data value for all counters in the specified query. |
| public int | Returns: ERROR_SUCCESS if successfulHandle to the query hQuery,Time stamp when the first counter value in the query
was retrieved. The time is specified as pllTimeStampWinBase..Collects the current raw data value for all counters in the specified query and updates the status code of each counter. |
| public int | Returns: ERROR_SUCCESS if successfulThe name of the computer to connect to. If
szMachineName)null, PDH connects to the local computer.Connects to the specified computer. |
| public int | Returns: 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.String that specifies the name of the log file used to
enumerate the counter and instance names. If NULL, the
function uses the computer specified in the szMachineName
parameter to enumerate the names. szDataSource, String String that specifies the name of the computer that contains
the counter and instance names that you want to enumerate.
Include the leading slashes in the computer name, for example,
\\computername. If the szDataSource parameter is NULL, you can
set szMachineName to NULL to specify the local computer. szMachineName, String String that specifies the name of the object whose counter and
instance names you want to enumerate. szObjectName, Pointer Caller-allocated buffer that receives a list of
null-terminated counter names provided by the specified
object. The list contains unique counter names. The list is
terminated by two NULL characters. Set to NULL if the
pcchCounterListLengthparameter is zero. mszCounterList, WinDef.Size of the mszCounterList buffer, in TCHARs. If zero on input
and the object exists, the function returns PDH_MORE_DATA and
sets this parameter to the required buffer size. If the buffer
is larger than the required size, the function sets this
parameter to the actual size of the buffer that was used. If
the specified size on input is greater than zero but less than
the required size, you should not rely on the returned size to
reallocate the buffer. pcchCounterListLength,Caller-allocated buffer that receives a list of
null-terminated instance names provided by the specified
object. The list contains unique instance names. The list is
terminated by two NULL characters. Set to NULL if
pcchInstanceListLength is zero. mszInstanceList, WinDef.Size of the mszInstanceList buffer, in TCHARs. If zero on
input and the object exists, the function returns
PDH_MORE_DATA and sets this parameter to the required buffer
size. If the buffer is larger than the required size, the
function sets this parameter to the actual size of the buffer
that was used. If the specified size on input is greater than
zero but less than the required size, you should not rely on
the returned size to reallocate the buffer. If the specified
object does not support variable instances, then the returned
value will be zero. If the specified object does support
variable instances, but does not currently have any instances,
then the value returned is 2, which is the size of an empty
MULTI_SZ list string. pcchInstanceListLength,Detail level of the performance items to return. All items
that are of the specified detail level or less will be
returned. dwDetailLevel, int This parameter must be zero. dwFlags)Returns the specified object's counter and instance names that exist on the specified computer or in the specified log file. |
| public int | Returns: ERROR_SUCCESS if successfulA variable that receives the version of Pdh.dll. lpdwVersionReturns the version of the currently installed Pdh.dll file. |
| public int | Returns: ERROR_SUCCESS if successfulHandle of the counter from which to retrieve the current raw value. hCounter,Receives the counter type - this parameter is optional lpdwType,The pValuePDH_RAW_COUNTER structure to receive the data
|
| public int | Returns: 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.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. szMachineName, String Null-terminated string that contains the counter name. szNameBuffer, WinDef.Index of the counter. pdwIndexReturns the counter index corresponding to the specified counter name. |
| public int | Returns: 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.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. szMachineName, int Index of the performance object or counter. dwNameIndex, Pointer Caller-allocated buffer that receives the null-terminated name
of the performance object or counter. Set to NULL if
pcchNameBufferSize is zero. szNameBuffer, WinDef.Size of the szNameBuffer buffer, in TCHARs. If zero on input,
the function returns PDH_MORE_DATA and sets this parameter to
the required buffer size. If the buffer is larger than the
required size, the function sets this parameter to the actual
size of the buffer that was used. If the specified size on
input is greater than zero but less than the required size,
you should not rely on the returned size to reallocate the
buffer. pcchNameBufferSizeReturns the performance object name or counter name corresponding to the specified index. |
| public int | Returns: ERROR_SUCCESS (or PDH_MORE_DATA)Structure that contains the members
used to make up the path pCounterPathElements,Caller-allocated buffer that receives a null-terminated
counter path. The maximum length of a counter path is PDH_MAX_COUNTER_PATH.
Set to szFullPathBuffer, WinDef.null if pcchBufferSize is zero.Size of the szFullPathBuffer buffer. If
zero on input, the function returns PDH_MORE_DATA and sets this parameter
to the required buffer size. If the buffer is larger than the required
size, the function sets this parameter to the actual size of the buffer
that was used. pcchBufferSize,Format of the input and output counter values. dwFlags)Creates a full counter path using the members specified in the
|
| public int | Returns: ERROR_SUCCESS if successfulThe name of the log file from which to retrieve performance data.
If szDataSource, BaseTSD.null, performance data is collected from a real-time data source.User-defined value to associate with this query. dwUserData,(Out) Handle to the query. You use this handle in subsequent calls. phQueryCreates a new query that is used to manage the collection of performance data. |
| public int | Returns: ERROR_SUCCESS if successfulHandle of the counter to remove from its query. hCounterRemoves a counter from a query. |
| public int | Returns: ERROR_SUCCESS if successfulHandle to the query. hQuery,A pInfoPDH_TIME_INFO structure that specifies the time range.
|
| public int | Returns: ERROR_SUCCESS if successfulThe counter path to validate szFullCounterPath)Validates that the counter is present on the computer specified in the counter path. |
| INSTANCE | back to summary |
|---|---|
| public static final Pdh INSTANCE | |
| PDH_CSTATUS_NO_MACHINE | back to summary |
|---|---|
| public static final int PDH_CSTATUS_NO_MACHINE | |
| PDH_CSTATUS_NO_OBJECT | back to summary |
|---|---|
| public static final int PDH_CSTATUS_NO_OBJECT | |
| PDH_CVERSION_WIN40 | back to summary |
|---|---|
| public static final int PDH_CVERSION_WIN40 | |
| PDH_CVERSION_WIN50 | back to summary |
|---|---|
| public static final int PDH_CVERSION_WIN50 | |
| PDH_FMT_1000 | back to summary |
|---|---|
| public static final int PDH_FMT_1000 | |
| PDH_FMT_ANSI | back to summary |
|---|---|
| public static final int PDH_FMT_ANSI | |
| PDH_FMT_DOUBLE | back to summary |
|---|---|
| public static final int PDH_FMT_DOUBLE | |
| PDH_FMT_LARGE | back to summary |
|---|---|
| public static final int PDH_FMT_LARGE | |
| PDH_FMT_LONG | back to summary |
|---|---|
| public static final int PDH_FMT_LONG | |
| PDH_FMT_NOCAP100 | back to summary |
|---|---|
| public static final int PDH_FMT_NOCAP100 | |
| PDH_FMT_NODATA | back to summary |
|---|---|
| public static final int PDH_FMT_NODATA | |
| PDH_FMT_NOSCALE | back to summary |
|---|---|
| public static final int PDH_FMT_NOSCALE | |
| PDH_FMT_RAW | back to summary |
|---|---|
| public static final int PDH_FMT_RAW | |
| PDH_FMT_UNICODE | back to summary |
|---|---|
| public static final int PDH_FMT_UNICODE | |
| PDH_INSUFFICIENT_BUFFER | back to summary |
|---|---|
| public static final int PDH_INSUFFICIENT_BUFFER | |
| PDH_INVALID_ARGUMENT | back to summary |
|---|---|
| public static final int PDH_INVALID_ARGUMENT | |
| PDH_MAX_COUNTER_NAME | back to summary |
|---|---|
| public static final int PDH_MAX_COUNTER_NAME Maximum counter name length. | |
| PDH_MAX_COUNTER_PATH | back to summary |
|---|---|
| public static final int PDH_MAX_COUNTER_PATH Maximum full counter path length. | |
| PDH_MAX_DATASOURCE_PATH | back to summary |
|---|---|
| public static final int PDH_MAX_DATASOURCE_PATH Maximum full counter log name length. | |
| PDH_MAX_INSTANCE_NAME | back to summary |
|---|---|
| public static final int PDH_MAX_INSTANCE_NAME Maximum counter instance name length. | |
| PDH_MEMORY_ALLOCATION_FAILURE | back to summary |
|---|---|
| public static final int PDH_MEMORY_ALLOCATION_FAILURE | |
| PDH_MORE_DATA | back to summary |
|---|---|
| public static final int PDH_MORE_DATA | |
| PDH_PATH_WBEM_INPUT | back to summary |
|---|---|
| public static final int PDH_PATH_WBEM_INPUT | |
| PDH_PATH_WBEM_RESULT | back to summary |
|---|---|
| public static final int PDH_PATH_WBEM_RESULT | |
| PDH_VERSION | back to summary |
|---|---|
| public static final int PDH_VERSION | |
| PERF_DETAIL_COSTLY | back to summary |
|---|---|
| public static final int PERF_DETAIL_COSTLY | |
| PERF_DETAIL_STANDARD | back to summary |
|---|---|
| public static final int PERF_DETAIL_STANDARD | |
| PdhAddCounter | back to summary |
|---|---|
| public int PdhAddCounter(WinNT. Adds the specified counter to the query.
| |
| PdhAddEnglishCounter | back to summary |
|---|---|
| public int PdhAddEnglishCounter(WinNT. | |
| PdhCloseQuery | back to summary |
|---|---|
| public int PdhCloseQuery(WinNT. Closes all counters contained in the specified query, closes all handles related to the query, and frees all memory associated with the query.
| |
| PdhCollectQueryData | back to summary |
|---|---|
| public int PdhCollectQueryData(WinNT. Collects the current raw data value for all counters in the specified query and updates the status code of each counter.
| |
| PdhCollectQueryDataEx | back to summary |
|---|---|
| public int PdhCollectQueryDataEx(WinNT. Uses a separate thread to collect the current raw data value for all counters in the specified query. The function then signals the application-defined event and waits the specified time interval before returning.
| |
| PdhCollectQueryDataWithTime | back to summary |
|---|---|
| public int PdhCollectQueryDataWithTime(WinNT. Collects the current raw data value for all counters in the specified query and updates the status code of each counter.
| |
| PdhConnectMachine | back to summary |
|---|---|
| public int PdhConnectMachine(String szMachineName) Connects to the specified computer.
| |
| PdhEnumObjectItems | back to summary |
|---|---|
| public int PdhEnumObjectItems(String szDataSource, String szMachineName, String szObjectName, Pointer mszCounterList, WinDef. Returns the specified object's counter and instance names that exist on the specified computer or in the specified log file.
| |
| PdhGetDllVersion | back to summary |
|---|---|
| public int PdhGetDllVersion(WinDef. Returns the version of the currently installed Pdh.dll file.
| |
| PdhGetRawCounterValue | back to summary |
|---|---|
public int PdhGetRawCounterValue(WinNT.
| |
| PdhLookupPerfIndexByName | back to summary |
|---|---|
| public int PdhLookupPerfIndexByName(String szMachineName, String szNameBuffer, WinDef. Returns the counter index corresponding to the specified counter name.
| |
| PdhLookupPerfNameByIndex | back to summary |
|---|---|
| public int PdhLookupPerfNameByIndex(String szMachineName, int dwNameIndex, Pointer szNameBuffer, WinDef. Returns the performance object name or counter name corresponding to the specified index.
| |
| PdhMakeCounterPath | back to summary |
|---|---|
| public int PdhMakeCounterPath(Pdh. Creates a full counter path using the members specified in the
| |
| PdhOpenQuery | back to summary |
|---|---|
| public int PdhOpenQuery(String szDataSource, BaseTSD. Creates a new query that is used to manage the collection of performance data.
| |
| PdhRemoveCounter | back to summary |
|---|---|
| public int PdhRemoveCounter(WinNT. Removes a counter from a query.
| |
| PdhSetQueryTimeRange | back to summary |
|---|---|
public int PdhSetQueryTimeRange(WinNT.
| |
| PdhValidatePath | back to summary |
|---|---|
| public int PdhValidatePath(String szFullCounterPath) Validates that the counter is present on the computer specified in the counter path.
| |
| Modifier and Type | Field and Description |
|---|---|
| public int | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String |
| Access | Constructor and Description |
|---|---|
| public |
| dwInstanceIndex | back to summary |
|---|---|
| public int dwInstanceIndex | |
| szCounterName | back to summary |
|---|---|
| public String szCounterName | |
| szInstanceName | back to summary |
|---|---|
| public String szInstanceName | |
| szMachineName | back to summary |
|---|---|
| public String szMachineName | |
| szObjectName | back to summary |
|---|---|
| public String szObjectName | |
| szParentInstance | back to summary |
|---|---|
| public String szParentInstance | |
| PDH_COUNTER_PATH_ELEMENTS | back to summary |
|---|---|
| public PDH_COUNTER_PATH_ELEMENTS() | |
| Modifier and Type | Field and Description |
|---|---|
| public int | CStatus
Counter status that indicates if the counter value is valid. |
| public long | FirstValue
First raw counter value. |
| public int | MultiCount
If the counter type contains the PERF_MULTI_COUNTER flag, this member contains the additional counter data used in the calculation |
| public long | SecondValue
Second raw counter value. |
| public WinBase. | TimeStamp
Local time for when the data was collected |
| Access | Constructor and Description |
|---|---|
| public |
| CStatus | back to summary |
|---|---|
| public int CStatus Counter status that indicates if the counter value is valid. | |
| FirstValue | back to summary |
|---|---|
| public long FirstValue First raw counter value. | |
| MultiCount | back to summary |
|---|---|
| public int MultiCount If the counter type contains the PERF_MULTI_COUNTER flag, this member contains the additional counter data used in the calculation | |
| SecondValue | back to summary |
|---|---|
| public long SecondValue Second raw counter value. | |
| TimeStamp | back to summary |
|---|---|
| public WinBase. Local time for when the data was collected | |
| PDH_RAW_COUNTER | back to summary |
|---|---|
| public PDH_RAW_COUNTER() | |
| Modifier and Type | Field and Description |
|---|---|
| public long | EndTime
Ending time of the sample interval, in local FILETIME format. |
| public int | SampleCount
Number of samples collected during the interval. |
| public long | StartTime
Starting time of the sample interval, in local FILETIME format. |
| Access | Constructor and Description |
|---|---|
| public |
| EndTime | back to summary |
|---|---|
| public long EndTime Ending time of the sample interval, in local FILETIME format. | |
| SampleCount | back to summary |
|---|---|
| public int SampleCount Number of samples collected during the interval. | |
| StartTime | back to summary |
|---|---|
| public long StartTime Starting time of the sample interval, in local FILETIME format. | |
| PDH_TIME_INFO | back to summary |
|---|---|
| public PDH_TIME_INFO() | |