Platform SDK: Performance Monitoring |
The time range of a performance data set stored in a log file can be obtained by calling the PdhGetDataSourceTimeRange function. PdhGetDataSourceTimeRange returns the time range information in a PDH_TIME_INFO structure.
If PdhGetDataSourceTimeRange is called with the data source specified as anything other than a log file, the function will leave the PDH_TIME_INFO structure uninitialized and return PDH_DATA_SOURCE_IS_REAL_TIME.