Platform SDK: Performance Monitoring |
The PdhGetDllVersion function returns the version of the currently installed Pdh.dll file.
PDH_FUNCTION PdhGetDllVersion( LPDWORD lpdwVersion );
Value | Description |
---|---|
PDH_CVERSION_WIN40 | The file version is Windows NT 4.0. |
PDH_CVERSION_WIN50 | The file version is Windows 2000. |
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. |
This function is used to help in determining the functionality the currently installed version of Pdh.dll supports.
Windows NT/2000: Requires Windows NT 4.0 or later.
Header: Declared in Pdh.h.
Library: Use Pdh.lib.