Platform SDK: Performance Monitoring

The Close Function

The system calls each application's Close function when an application calls the RegCloseKey function to close the HKEY_PERFORMANCE_DATA key. This function performs any cleanup required by the application's performance data collection mechanism. For example, the function could close device handles opened by the CreateFile function, or close a handle to a file mapping object.

Use the following function prototype for your Close function.

DWORD WINAPI ClosePerformanceData();

The name ClosePerformanceData is a placeholder for an application-defined name.

The function should return ERROR_SUCCESS.