My application is using Pdh.dll it is openeing a reg key HKLM\SYSTEM\ControlSet001\Services\FileReplicaSet\Performance a lot of time which is causing handle leak.

is there a way i can forcefully close this key using c++.

thanks
anuj