Does anyone know of a method for creating custom performance counters using regular unmanaged Visual C ++?
I know that this can be done easily using managed C ++, but I need to do this using an unmanaged Windows service.
I also know that you can get performance counter data, but I need to create some custom counters and increase them at runtime.
See here: http://msdn.microsoft.com/en-us/library/aa371925.aspx
, , API IPC .
++ Vista . DLL- , , , .
, , CTRPP, , . ( ) . , .
lodctr/m: [ ], , . .
BTW: , unlodctr lodctr , - , "", , .
<RANT> . , lodctr Vista, MSDN XP . MSDN, , " ", , , Microsoft . </RANT>
ATL. , , , . , 6 . 3 .
I was looking for something that is easier to implement. I probably have to use this approach. I also showed a colleague (thanks PJ) that there is a Scribble tutorial that has been modified to show how to add a performance counter using ATL classes: PerformanceScribble example: monitoring performance in an MFC application
The big drawback here is that my application currently does not use MFC or ATL, and I will have to add support for it.