Validates that the specified counter is present on the computer or in the log file.
PDH_FUNCTION PdhValidatePathExA( PDH_HLOG hDataSource, LPCSTR szFullPathBuffer );
To validate that the counter is present on the local computer, specify NULL (this is the same as calling PdhValidatePath).
Null-terminated string that specifies the counter path to validate. The maximum length of a counter path is PDH_MAX_COUNTER_PATH.
If the function succeeds, it returns ERROR_SUCCESS.
||The specified instance of the performance object was not found.|
||The specified counter was not found in the performance object.|
||The specified performance object was not found on the computer or in the log file.|
||The specified computer could not be found or connected to.|
||The counter path string could not be parsed.|
||The function is unable to allocate a required temporary buffer.|
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|