This is work in progress.

Windows / Modules / pdh.dll

pdh.dll

Performance Data Helper API

Associated Error Codes

Below lists error codes and symbolic names found for this module.

CodeDescription
0x00000001The returned data value is valid and different from the last sample.
0x00007858 Data Helper API 0x00000000 The returned data is valid.
0x10000038Classic
0x800007D0Unable to connect to the specified computer or the computer is offline.
0x800007D1The specified instance is not present.
0x800007D2There is more data to return than will fit in the supplied buffer. Allocate a larger buffer and call the function again.
0x800007D3The data item has been added to the query, but has not been validated or accessed. No other status information about this data item is available.
0x800007D4Retry the selected operation.
0x800007D5No data to return.
0x800007D6A counter with a negative denominator value was detected.
0x800007D7A counter with a negative timebase value was detected.
0x800007D8A counter with a negative value was detected.
0x800007D9The user canceled the dialog box.
0x800007DAThe end of the log file was reached.
0x800007DBTime-out while waiting for the asynchronous counter collection thread to end.
0x800007DCCannot change the default real time data source. There are real time query sessions collecting counter data.
0x80000BD5Unable to map to the performance counter name data files. The data will be read from the registry and stored locally.
0x80000BF3The information passed is not valid.
0x90000001Microsoft-Windows-PDH
0xC0000BB8The specified object was not found on the computer.
0xC0000BB9The specified counter could not be found.
0xC0000BBAThe returned data is not valid.
0xC0000BBBA PDH function could not allocate enough temporary memory to complete the operation. Close some applications or extend the pagefile and retry the function.
0xC0000BBCThe handle is not a valid PDH object.
0xC0000BBDA required argument is missing or not correct.
0xC0000BBEUnable to find the specified function.
0xC0000BBFNo counter was specified.
0xC0000BC0Unable to parse the counter path. Check the format and syntax of the specified path.
0xC0000BC1The buffer passed by the caller is not valid.
0xC0000BC2The requested data is larger than the given buffer. Unable to return the requested data.
0xC0000BC3Unable to connect to the requested computer.
0xC0000BC4The specified counter path could not be interpreted.
0xC0000BC5The instance name could not be read from the specified counter path.
0xC0000BC6The data is not valid.
0xC0000BC7The data block of the dialog box was missing or not valid.
0xC0000BC8Unable to read the counter and/or explain text from the specified computer.
0xC0000BC9Unable to create the specified log file.
0xC0000BCAUnable to open the specified log file.
0xC0000BCBThe specified log file type has not been installed on this computer.
0xC0000BCCNo more data is available.
0xC0000BCDThe specified record was not found in the log file.
0xC0000BCEThe specified data source is a log file.
0xC0000BCFThe specified data source is the current activity.
0xC0000BD0The log file header could not be read.
0xC0000BD1Unable to find the specified file.
0xC0000BD2There is already a file with the specified file name.
0xC0000BD3The referenced function is not implemented.
0xC0000BD4Unable to find the specified string in the list of performance name and explain text strings.
0xC0000BD6The format of the specified log file is not recognized by the PDH DLL.
0xC0000BD7The specified Log Service command value is not recognized.
0xC0000BD8Unable to open or find the specified Query from the Log Service.
0xC0000BD9Unable to open the Performance Data Log Service key. This may be due to insufficient privilege or because the service has not been installed.
0xC0000BDAAn error occurred while accessing the WBEM data store.
0xC0000BDBUnable to access the desired computer or service. Check the permissions and authentication of the log service or the interactive user session against those on the computer or service being monitored.
0xC0000BDCThe maximum log file size specified is too small to log the selected counters. No data will be recorded in this log file. Specify a smaller set of counters to log or a larger file size and retry this call.
0xC0000BDDCannot connect to ODBC DataSource Name.
0xC0000BDEThe SQL database does not contain a valid set of tables for Performance Monitor; you need to use PdhCreateSQLTables. Use the ODBC Data Source Administrator to create a SQL Server system data source name to let Performance Monitor correctly create a database for counter logging.
0xC0000BDFNo counters were found for this Performance Monitor SQL Log Set.
0xC0000BE0Call to SQLAllocStmt failed with %1.
0xC0000BE1Call to SQLAllocConnect failed with %1.
0xC0000BE2Call to SQLExecDirect failed with %1.
0xC0000BE3Call to SQLFetch failed with %1.
0xC0000BE4Call to SQLRowCount failed with %1.
0xC0000BE5Call to SQLMoreResults failed with %1.
0xC0000BE6Call to SQLConnect failed with %1.
0xC0000BE7Call to SQLBindCol failed with %1.
0xC0000BE8Unable to connect to the WMI server on the requested computer.
0xC0000BE9Collection is already running.
0xC0000BEAThe specified start time is after the end time.
0xC0000BEBCollection does not exist.
0xC0000BECThe specified end time has already passed.
0xC0000BEDCollection did not start. Check the application event log for any errors.
0xC0000BEECollection already exists.
0xC0000BEFThere is a mismatch in the settings type.
0xC0000BF0The information specified does not resolve to a valid path name.
0xC0000BF1The Performance Logs & Alerts service did not respond.
0xC0000BF2The information passed is not valid.
0xC0000BF4The name supplied is too long.
0xC0000BF5SQL log format is not correct. Correct format is "SQL:!".
0xC0000BF6The performance counter specified in the PdhAddCounter() call has already been added to the performance query. This counter is ignored.
0xC0000BF7Unable to read counter information and data from input binary log files.
0xC0000BF8At least one of the input binary log files contain fewer than two data samples.
0xC0000BF9The version of the operating system on the computer named %1 is more recent than that on the local computer. This operation is not available from the local computer.
0xC0000BFA%1 supports %2 or more recent versions. Check the operating system version on the computer named %3.
0xC0000BFBThe file that you want to append to this file must contain data that is older than the data in this file.
0xC0000BFCBoth files must have identical counters to append one file to the other.
0xC0000BFDCannot alter CounterDetail table layout in SQL database.
0xC0000BFEA timeout occurred when collecting counter data. Retry later, or increase the value of the "CollectTime" registry value at HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVerison\PDH\CollectTimeout. Its unit is in seconds. The default value is 300 seconds.
88 entries