The Platform SDK contains a sample performance DLL. This sample is located in the directory MSTOOLS\SAMPLES\WIN32\WINNT\PerfTool.