![]() The instance name could not be read from the specified counter path. The specified counter path could not be interpreted. Unable to connect to the requested computer. The requested data is larger than the buffer supplied. The buffer passed by the caller is not valid. Check the format and syntax of the specified path. Close some applications or extend the page file and retry the function.Ī required argument is missing or incorrect. The specified counter could not be found.ĠxC0000BBB (PDH_MEMORY_ALLOCATION_FAILURE)Ī PDH function could not allocate enough temporary memory to complete the operation. The specified object is not found on the system. There are real-time query sessions collecting counter data. The selected operation should be retried.Ġx800007D6 (PDH_CALC_NEGATIVE_DENOMINATOR)Ī counter with a negative denominator value was detected.Ī counter with a negative time base value was detected.Ī counter with a negative value was detected.Ī time-out occurred while waiting for the asynchronous counter collection thread to end.Ġx800007DC (PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE)Ĭannot change set default real-time data source. No other status information on this data item is available. The data item has been added to the query but has not been validated nor accessed. Allocate a larger buffer and call the function again.Ġx800007D3 (PDH_CSTATUS_ITEM_NOT_VALIDATED) There is more data to return than would fit in the supplied buffer. Unable to connect to the specified computer, or the computer is offline. The return data value is valid and different from the last sample. These values are defined in the pdhmsg.h header file. The following table provides a list of error codes that are specific to PDH. If the value of the CStatus member does not indicate success, do not use the data. Always check the CStatus member of the counter value returned to ensure that the data returned is valid before you use it. Wprintf(L"Formatted message: %ls\n", pMessage) įor data collection and formatting functions, it is important to remember that the return value of the function indicates the success or error of the function call and not necessarily that of the counter data. Wprintf(L"Format message failed with 0x%x\n", GetLastError()) If (!FormatMessage(FORMAT_MESSAGE_FROM_HMODULE | Wprintf(L"LoadLibrary failed with %lu\n", GetLastError()) #include ĭWORD dwErrorCode = PDH_PLA_ERROR_ALREADY_EXISTS To retrieve the description text for the error in your application, use the FormatMessage function as shown in the following example. Otherwise, the function returns a system error code or a PDH error code. If the function succeeds, the return value is ERROR_SUCCESS. All Performance Data Helper (PDH) functions return a value of type PDH_STATUS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |