Top Description Fields
com.sun.jna.platform.win32

public Interface PdhMsg


PDH specific error codes
Author
Lyor Goldstein
See Also
Performance Data Helper Error Codes

Field Summary

Modifier and TypeField and Description
public static final int
PDH_ACCESS_DENIED

Unable to access the desired computer or service.

public static final int
PDH_ASYNC_QUERY_TIMEOUT

A time-out occurred while waiting for the asynchronous counter collection thread to end.

public static final int
PDH_BINARY_LOG_CORRUPT

Unable to read counter information and data from input binary log files.

public static final int
PDH_CALC_NEGATIVE_DENOMINATOR

A counter with a negative denominator value was detected.

public static final int
PDH_CALC_NEGATIVE_TIMEBASE

A counter with a negative time base value was detected.

public static final int
PDH_CALC_NEGATIVE_VALUE

A counter with a negative value was detected.

public static final int
PDH_CANNOT_CONNECT_MACHINE

Unable to connect to the requested computer.

public static final int
PDH_CANNOT_CONNECT_WMI_SERVER

Unable to connect to the WMI server on requested computer.

public static final int
PDH_CANNOT_READ_NAME_STRINGS

Unable to read the counter and/or help text from the specified computer.

public static final int
PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE

Cannot change set default real-time data source.

public static final int
PDH_COUNTER_ALREADY_IN_QUERY

Performance counter in PdhAddCounter call has already been added in the performance query.

public static final int
PDH_CSTATUS_BAD_COUNTERNAME

Unable to parse the counter path.

public static final int
PDH_CSTATUS_INVALID_DATA

The returned data is not valid.

public static final int
PDH_CSTATUS_ITEM_NOT_VALIDATED

The data item has been added to the query but has not been validated nor accessed.

public static final int
PDH_CSTATUS_NEW_DATA

Return data value is valid and different from the last sample.

public static final int
PDH_CSTATUS_NO_COUNTER

The specified counter could not be found.

public static final int
PDH_CSTATUS_NO_COUNTERNAME

No counter was specified.

public static final int
PDH_CSTATUS_NO_INSTANCE

The specified instance is not present.

public static final int
PDH_CSTATUS_NO_MACHINE

Unable to connect to the specified computer, or the computer is offline.

public static final int
PDH_CSTATUS_NO_OBJECT

The specified object is not found on the system.

public static final int
PDH_CSTATUS_VALID_DATA

Returned data is valid.

public static final int
PDH_DATA_SOURCE_IS_LOG_FILE

The specified data source is a log file.

public static final int
PDH_DATA_SOURCE_IS_REAL_TIME

The specified data source is the current activity.

public static final int
PDH_DIALOG_CANCELLED

The user canceled the dialog box.

public static final int
PDH_END_OF_LOG_FILE

The end of the log file was reached.

public static final int
PDH_ENTRY_NOT_IN_LOG_FILE

The specified record was not found in the log file.

public static final int
PDH_FILE_ALREADY_EXISTS

There is already a file with the specified file name.

public static final int
PDH_FILE_NOT_FOUND

Unable to find the specified file.

public static final int
PDH_FUNCTION_NOT_FOUND

Unable to find the specified function.

public static final int
PDH_INCORRECT_APPEND_TIME

The output file must contain earlier data than the file to be appended.

public static final int
PDH_INSUFFICIENT_BUFFER

The requested data is larger than the buffer supplied.

public static final int
PDH_INVALID_ARGUMENT

A required argument is missing or incorrect.

public static final int
PDH_INVALID_BUFFER

The buffer passed by the caller is not valid.

public static final int
PDH_INVALID_DATA

The data is not valid.

public static final int
PDH_INVALID_DATASOURCE

Cannot connect to ODBC DataSource Name.

public static final int
PDH_INVALID_HANDLE

The handle is not a valid PDH object.

public static final int
PDH_INVALID_INSTANCE

The instance name could not be read from the specified counter path.

public static final int
PDH_INVALID_PATH

The specified counter path could not be interpreted.

public static final int
PDH_INVALID_SQL_LOG_FORMAT

SQL log format is incorrect.

public static final int
PDH_INVALID_SQLDB

SQL Data base does not contain a valid set of tables for Perfmon.

public static final int
PDH_LOG_FILE_CREATE_ERROR

Unable to create the specified log file.

public static final int
PDH_LOG_FILE_OPEN_ERROR

Unable to open the specified log file.

public static final int
PDH_LOG_FILE_TOO_SMALL

The maximum log file size specified is too small to log the selected counters.

public static final int
PDH_LOG_SAMPLE_TOO_SMALL

At least one of the input binary log files contain fewer than two data samples.

public static final int
PDH_LOG_TYPE_NOT_FOUND

The specified log file type has not been installed on this system.

public static final int
PDH_LOGSVC_NOT_OPENED

The Performance Data Log Service key could not be opened.

public static final int
PDH_LOGSVC_QUERY_NOT_FOUND

The specified query from the Log Service could not be found or could not be opened.

public static final int
PDH_MEMORY_ALLOCATION_FAILURE

A PDH function could not allocate enough temporary memory to complete the operation.

public static final int
PDH_MORE_DATA

There is more data to return than would fit in the supplied buffer.

public static final int
PDH_NO_COUNTERS

No counters were found for this Perfmon SQL Log Set.

public static final int
PDH_NO_DATA

No data to return.

public static final int
PDH_NO_DIALOG_DATA

The dialog box data block was missing or not valid.

public static final int
PDH_NO_MORE_DATA

No more data is available.

public static final int
PDH_NOT_IMPLEMENTED

The function referenced has not been implemented.

public static final int
PDH_OS_EARLIER_VERSION

%1 supports %2 or later.

public static final int
PDH_OS_LATER_VERSION

The version of the operating system on the computer named %1 is later than that on the local computer.

public static final int
public static final int
public static final int
public static final int
PDH_PLA_ERROR_FILEPATH

The information specified does not resolve to a valid path name.

public static final int
PDH_PLA_ERROR_NAME_TOO_LONG

The name supplied is too long.

public static final int
PDH_PLA_ERROR_NOSTART

Collection "%1!s!

public static final int
PDH_PLA_ERROR_SCHEDULE_ELAPSED

The specified end time has already elapsed.

public static final int
PDH_PLA_ERROR_SCHEDULE_OVERLAP

The specified start time is after the end time.

public static final int
PDH_PLA_ERROR_TYPE_MISMATCH

There is a mismatch in the settings type.

public static final int
PDH_PLA_SERVICE_ERROR

The "Performance Logs & Alerts" service did not respond.

public static final int
PDH_PLA_VALIDATION_ERROR

The information passed is not valid.

public static final int
PDH_PLA_VALIDATION_WARNING

The information passed is not valid.

public static final int
PDH_QUERY_PERF_DATA_TIMEOUT

System is busy - a time-out occurred when collecting counter data

public static final int
PDH_RETRY

The selected operation should be retried.

public static final int
PDH_SQL_ALLOC_FAILED

Call to SQLAllocStmt failed with %1.

public static final int
PDH_SQL_ALLOCCON_FAILED

Call to SQLAllocConnect failed with %1.

public static final int
PDH_SQL_ALTER_DETAIL_FAILED

Cannot alter CounterDetail table layout in SQL database.

public static final int
PDH_SQL_BIND_FAILED

Call to SQLBindCol failed with %1.

public static final int
PDH_SQL_CONNECT_FAILED

Call to SQLMoreResults failed with %1.

public static final int
PDH_SQL_EXEC_DIRECT_FAILED

Call to SQLExecDirect failed with %1.

public static final int
PDH_SQL_FETCH_FAILED

Call to SQLFetch failed with %1.

public static final int
PDH_SQL_ROWCOUNT_FAILED

Call to SQLRowCount failed with %1.

public static final int
PDH_STRING_NOT_FOUND

Unable to find the specified string in the list of performance name and help text strings.

public static final int
PDH_UNABLE_MAP_NAME_FILES

Unable to map to the performance counter name data files.

public static final int
PDH_UNABLE_READ_LOG_HEADER

The log file header could not be read.

public static final int
PDH_UNKNOWN_LOG_FORMAT

The format of the specified log file is not recognized by the PDH DLL.

public static final int
PDH_UNKNOWN_LOGSVC_COMMAND

The specified Log Service command value is not recognized.

public static final int
PDH_UNMATCHED_APPEND_COUNTER

Both files must have identical counters in order to append.

public static final int
PDH_WBEM_ERROR

An error occurred while accessing the WBEM data store.

Field Detail

PDH_ACCESS_DENIEDback to summary
public static final int PDH_ACCESS_DENIED

Unable to access the desired computer or service.

PDH_ASYNC_QUERY_TIMEOUTback to summary
public static final int PDH_ASYNC_QUERY_TIMEOUT

A time-out occurred while waiting for the asynchronous counter collection thread to end.

PDH_BINARY_LOG_CORRUPTback to summary
public static final int PDH_BINARY_LOG_CORRUPT

Unable to read counter information and data from input binary log files.

PDH_CALC_NEGATIVE_DENOMINATORback to summary
public static final int PDH_CALC_NEGATIVE_DENOMINATOR

A counter with a negative denominator value was detected.

PDH_CALC_NEGATIVE_TIMEBASEback to summary
public static final int PDH_CALC_NEGATIVE_TIMEBASE

A counter with a negative time base value was detected.

PDH_CALC_NEGATIVE_VALUEback to summary
public static final int PDH_CALC_NEGATIVE_VALUE

A counter with a negative value was detected.

PDH_CANNOT_CONNECT_MACHINEback to summary
public static final int PDH_CANNOT_CONNECT_MACHINE

Unable to connect to the requested computer.

PDH_CANNOT_CONNECT_WMI_SERVERback to summary
public static final int PDH_CANNOT_CONNECT_WMI_SERVER

Unable to connect to the WMI server on requested computer.

PDH_CANNOT_READ_NAME_STRINGSback to summary
public static final int PDH_CANNOT_READ_NAME_STRINGS

Unable to read the counter and/or help text from the specified computer.

PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCEback to summary
public static final int PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE

Cannot change set default real-time data source.

PDH_COUNTER_ALREADY_IN_QUERYback to summary
public static final int PDH_COUNTER_ALREADY_IN_QUERY

Performance counter in PdhAddCounter call has already been added in the performance query.

PDH_CSTATUS_BAD_COUNTERNAMEback to summary
public static final int PDH_CSTATUS_BAD_COUNTERNAME

Unable to parse the counter path. Check the format and syntax of the specified path.

PDH_CSTATUS_INVALID_DATAback to summary
public static final int PDH_CSTATUS_INVALID_DATA

The returned data is not valid.

PDH_CSTATUS_ITEM_NOT_VALIDATEDback to summary
public static final int PDH_CSTATUS_ITEM_NOT_VALIDATED

The data item has been added to the query but has not been validated nor accessed. No other status information on this data item is available.

PDH_CSTATUS_NEW_DATAback to summary
public static final int PDH_CSTATUS_NEW_DATA

Return data value is valid and different from the last sample.

PDH_CSTATUS_NO_COUNTERback to summary
public static final int PDH_CSTATUS_NO_COUNTER

The specified counter could not be found.

PDH_CSTATUS_NO_COUNTERNAMEback to summary
public static final int PDH_CSTATUS_NO_COUNTERNAME

No counter was specified.

PDH_CSTATUS_NO_INSTANCEback to summary
public static final int PDH_CSTATUS_NO_INSTANCE

The specified instance is not present.

PDH_CSTATUS_NO_MACHINEback to summary
public static final int PDH_CSTATUS_NO_MACHINE

Unable to connect to the specified computer, or the computer is offline.

PDH_CSTATUS_NO_OBJECTback to summary
public static final int PDH_CSTATUS_NO_OBJECT

The specified object is not found on the system.

PDH_CSTATUS_VALID_DATAback to summary
public static final int PDH_CSTATUS_VALID_DATA

Returned data is valid.

PDH_DATA_SOURCE_IS_LOG_FILEback to summary
public static final int PDH_DATA_SOURCE_IS_LOG_FILE

The specified data source is a log file.

PDH_DATA_SOURCE_IS_REAL_TIMEback to summary
public static final int PDH_DATA_SOURCE_IS_REAL_TIME

The specified data source is the current activity.

PDH_DIALOG_CANCELLEDback to summary
public static final int PDH_DIALOG_CANCELLED

The user canceled the dialog box.

PDH_END_OF_LOG_FILEback to summary
public static final int PDH_END_OF_LOG_FILE

The end of the log file was reached.

PDH_ENTRY_NOT_IN_LOG_FILEback to summary
public static final int PDH_ENTRY_NOT_IN_LOG_FILE

The specified record was not found in the log file.

PDH_FILE_ALREADY_EXISTSback to summary
public static final int PDH_FILE_ALREADY_EXISTS

There is already a file with the specified file name.

PDH_FILE_NOT_FOUNDback to summary
public static final int PDH_FILE_NOT_FOUND

Unable to find the specified file.

PDH_FUNCTION_NOT_FOUNDback to summary
public static final int PDH_FUNCTION_NOT_FOUND

Unable to find the specified function.

PDH_INCORRECT_APPEND_TIMEback to summary
public static final int PDH_INCORRECT_APPEND_TIME

The output file must contain earlier data than the file to be appended.

PDH_INSUFFICIENT_BUFFERback to summary
public static final int PDH_INSUFFICIENT_BUFFER

The requested data is larger than the buffer supplied.

PDH_INVALID_ARGUMENTback to summary
public static final int PDH_INVALID_ARGUMENT

A required argument is missing or incorrect.

PDH_INVALID_BUFFERback to summary
public static final int PDH_INVALID_BUFFER

The buffer passed by the caller is not valid.

PDH_INVALID_DATAback to summary
public static final int PDH_INVALID_DATA

The data is not valid.

PDH_INVALID_DATASOURCEback to summary
public static final int PDH_INVALID_DATASOURCE

Cannot connect to ODBC DataSource Name.

PDH_INVALID_HANDLEback to summary
public static final int PDH_INVALID_HANDLE

The handle is not a valid PDH object.

PDH_INVALID_INSTANCEback to summary
public static final int PDH_INVALID_INSTANCE

The instance name could not be read from the specified counter path.

PDH_INVALID_PATHback to summary
public static final int PDH_INVALID_PATH

The specified counter path could not be interpreted.

PDH_INVALID_SQL_LOG_FORMATback to summary
public static final int PDH_INVALID_SQL_LOG_FORMAT

SQL log format is incorrect. Correct format is "SQL:<DSN-name>!<LogSet-Name>".

PDH_INVALID_SQLDBback to summary
public static final int PDH_INVALID_SQLDB

SQL Data base does not contain a valid set of tables for Perfmon.

PDH_LOG_FILE_CREATE_ERRORback to summary
public static final int PDH_LOG_FILE_CREATE_ERROR

Unable to create the specified log file.

PDH_LOG_FILE_OPEN_ERRORback to summary
public static final int PDH_LOG_FILE_OPEN_ERROR

Unable to open the specified log file.

PDH_LOG_FILE_TOO_SMALLback to summary
public static final int PDH_LOG_FILE_TOO_SMALL

The maximum log file size specified is too small to log the selected counters.

PDH_LOG_SAMPLE_TOO_SMALLback to summary
public static final int PDH_LOG_SAMPLE_TOO_SMALL

At least one of the input binary log files contain fewer than two data samples.

PDH_LOG_TYPE_NOT_FOUNDback to summary
public static final int PDH_LOG_TYPE_NOT_FOUND

The specified log file type has not been installed on this system.

PDH_LOGSVC_NOT_OPENEDback to summary
public static final int PDH_LOGSVC_NOT_OPENED

The Performance Data Log Service key could not be opened.

PDH_LOGSVC_QUERY_NOT_FOUNDback to summary
public static final int PDH_LOGSVC_QUERY_NOT_FOUND

The specified query from the Log Service could not be found or could not be opened.

PDH_MEMORY_ALLOCATION_FAILUREback to summary
public static final int PDH_MEMORY_ALLOCATION_FAILURE

A PDH function could not allocate enough temporary memory to complete the operation.

PDH_MORE_DATAback to summary
public static final int PDH_MORE_DATA

There is more data to return than would fit in the supplied buffer. Allocate a larger buffer and call the function again.

PDH_NO_COUNTERSback to summary
public static final int PDH_NO_COUNTERS

No counters were found for this Perfmon SQL Log Set.

PDH_NO_DATAback to summary
public static final int PDH_NO_DATA

No data to return.

PDH_NO_DIALOG_DATAback to summary
public static final int PDH_NO_DIALOG_DATA

The dialog box data block was missing or not valid.

PDH_NO_MORE_DATAback to summary
public static final int PDH_NO_MORE_DATA

No more data is available.

PDH_NOT_IMPLEMENTEDback to summary
public static final int PDH_NOT_IMPLEMENTED

The function referenced has not been implemented.

PDH_OS_EARLIER_VERSIONback to summary
public static final int PDH_OS_EARLIER_VERSION

%1 supports %2 or later. Check the operating system version on the computer named %3.

PDH_OS_LATER_VERSIONback to summary
public static final int PDH_OS_LATER_VERSION

The version of the operating system on the computer named %1 is later than that on the local computer.

PDH_PLA_COLLECTION_ALREADY_RUNNINGback to summary
public static final int PDH_PLA_COLLECTION_ALREADY_RUNNING

Collection "%1!s!" is already running.

PDH_PLA_COLLECTION_NOT_FOUNDback to summary
public static final int PDH_PLA_COLLECTION_NOT_FOUND

Collection "%1!s!" does not exist.

PDH_PLA_ERROR_ALREADY_EXISTSback to summary
public static final int PDH_PLA_ERROR_ALREADY_EXISTS

Collection "%1!s!" already exists.

PDH_PLA_ERROR_FILEPATHback to summary
public static final int PDH_PLA_ERROR_FILEPATH

The information specified does not resolve to a valid path name.

PDH_PLA_ERROR_NAME_TOO_LONGback to summary
public static final int PDH_PLA_ERROR_NAME_TOO_LONG

The name supplied is too long.

PDH_PLA_ERROR_NOSTARTback to summary
public static final int PDH_PLA_ERROR_NOSTART

Collection "%1!s!" did not start; check the application event log for any errors.

PDH_PLA_ERROR_SCHEDULE_ELAPSEDback to summary
public static final int PDH_PLA_ERROR_SCHEDULE_ELAPSED

The specified end time has already elapsed.

PDH_PLA_ERROR_SCHEDULE_OVERLAPback to summary
public static final int PDH_PLA_ERROR_SCHEDULE_OVERLAP

The specified start time is after the end time.

PDH_PLA_ERROR_TYPE_MISMATCHback to summary
public static final int PDH_PLA_ERROR_TYPE_MISMATCH

There is a mismatch in the settings type.

PDH_PLA_SERVICE_ERRORback to summary
public static final int PDH_PLA_SERVICE_ERROR

The "Performance Logs & Alerts" service did not respond.

PDH_PLA_VALIDATION_ERRORback to summary
public static final int PDH_PLA_VALIDATION_ERROR

The information passed is not valid.

PDH_PLA_VALIDATION_WARNINGback to summary
public static final int PDH_PLA_VALIDATION_WARNING

The information passed is not valid.

PDH_QUERY_PERF_DATA_TIMEOUTback to summary
public static final int PDH_QUERY_PERF_DATA_TIMEOUT

System is busy - a time-out occurred when collecting counter data

PDH_RETRYback to summary
public static final int PDH_RETRY

The selected operation should be retried.

PDH_SQL_ALLOC_FAILEDback to summary
public static final int PDH_SQL_ALLOC_FAILED

Call to SQLAllocStmt failed with %1.

PDH_SQL_ALLOCCON_FAILEDback to summary
public static final int PDH_SQL_ALLOCCON_FAILED

Call to SQLAllocConnect failed with %1.

PDH_SQL_ALTER_DETAIL_FAILEDback to summary
public static final int PDH_SQL_ALTER_DETAIL_FAILED

Cannot alter CounterDetail table layout in SQL database.

PDH_SQL_BIND_FAILEDback to summary
public static final int PDH_SQL_BIND_FAILED

Call to SQLBindCol failed with %1.

PDH_SQL_CONNECT_FAILEDback to summary
public static final int PDH_SQL_CONNECT_FAILED

Call to SQLMoreResults failed with %1. public static final int PDH_SQL_MORE_RESULTS_FAILED = 0xC0000BE5; /** Call to SQLConnect failed with %1.

PDH_SQL_EXEC_DIRECT_FAILEDback to summary
public static final int PDH_SQL_EXEC_DIRECT_FAILED

Call to SQLExecDirect failed with %1.

PDH_SQL_FETCH_FAILEDback to summary
public static final int PDH_SQL_FETCH_FAILED

Call to SQLFetch failed with %1.

PDH_SQL_ROWCOUNT_FAILEDback to summary
public static final int PDH_SQL_ROWCOUNT_FAILED

Call to SQLRowCount failed with %1.

PDH_STRING_NOT_FOUNDback to summary
public static final int PDH_STRING_NOT_FOUND

Unable to find the specified string in the list of performance name and help text strings.

PDH_UNABLE_MAP_NAME_FILESback to summary
public static final int PDH_UNABLE_MAP_NAME_FILES

Unable to map to the performance counter name data files.

PDH_UNABLE_READ_LOG_HEADERback to summary
public static final int PDH_UNABLE_READ_LOG_HEADER

The log file header could not be read.

PDH_UNKNOWN_LOG_FORMATback to summary
public static final int PDH_UNKNOWN_LOG_FORMAT

The format of the specified log file is not recognized by the PDH DLL.

PDH_UNKNOWN_LOGSVC_COMMANDback to summary
public static final int PDH_UNKNOWN_LOGSVC_COMMAND

The specified Log Service command value is not recognized.

PDH_UNMATCHED_APPEND_COUNTERback to summary
public static final int PDH_UNMATCHED_APPEND_COUNTER

Both files must have identical counters in order to append.

PDH_WBEM_ERRORback to summary
public static final int PDH_WBEM_ERROR

An error occurred while accessing the WBEM data store.