I am a Google Summer of Code student working for TCL community. I am writing an extension to get access to CPU hardware counters. I found Perfutil C API pretty interesting but I could not compile my c programs to use it. I am working on Microsoft Windows 7(intel i7).

I would be thankful if somebody can explain a step-by-step procedure to use this API on windows. Some examples will be very useful.