Platform SDK: Performance Monitoring

Closing a Log File

You can call either PdhCloseQuery or PdhCloseLog to close a log file. Which function you use depends on which function you used to open the log file.

PdhCloseQuery and PdhCloseLog close both local counters and counters located on other machines.