Platform SDK: Performance Monitoring

Deleting the Application's Performance Key

The performance key created when the performance DLL was installed can be deleted either by using the Regedt32.exe utility or by calling RegDeleteKey. You must run the unlodctr utility to remove the counter names and descriptions from the registry before deleting the performance key. Refer to Removing Counter Names and Descriptions from the Registry for information on how to do this.

To delete the performance key with Regedt32.exe, do the following.

  1. Click the Start key, then select Run.
  2. Type "regedt32" in the Open field, then click OK.
  3. Within the HKEY_LOCAL_MACHINE window, click the SYSTEM key, then click the CurrentControlSet key, then click the Services key.
  4. Click the key with the name corresponding to the service name of the application that supports the counters you want to delete. Click the Performance subkey of this key.
  5. Select Delete in the Edit menu. The performance key will be deleted from the registry.

To delete the performance key using RegDeleteKey, use the following function call syntax.

RegDeleteKey(HKEY_LOCAL_MACHINE, "<service name of the application>/Performance");

<service name of the application> refers to the service name mentioned in Step 4 in the preceding list.