Platform SDK: Performance Monitoring

PdhGetDllVersion

The PdhGetDllVersion function returns the version of the currently installed Pdh.dll file.

PDH_FUNCTION PdhGetDllVersion(
  LPDWORD lpdwVersion           
);

Parameters

lpdwVersion
[out] A pointer to a DWORD that receives the version of Pdh.dll. This parameter can be one of the following values.
Value Description
PDH_CVERSION_WIN40 The file version is Windows NT 4.0.
PDH_CVERSION_WIN50 The file version is Windows 2000.

Return Values

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, the return value is a PDH error status defined in PDHMsg.h. The following are possible error values.

Error value Description
PDH_INVALID_ARGUMENT An argument is not correct or is incorrectly formatted.

Remarks

This function is used to help in determining the functionality the currently installed version of Pdh.dll supports.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Header: Declared in Pdh.h.
  Library: Use Pdh.lib.