Registering a performance counter without lodctr

I am looking for an approach to register with XML-based performance counters without using an executable lodctr.

While this question and this question gave some idea of ​​the problem, no one gives the correct solution,

The function seems to do the trick, but does not seem to accept XML as input (i.e., an argument to the command ). The function will still call the command , but save the programmer from the program call . LoadPerfCounterTextStrings/Mlodctrlodctrlodctr.exe

Is there a way to call this function (or any other) that will behave like this:

lodctr.exe /M:xmlfile.xml

?

Just additional information about what LoadPerfCounterTextStringsis available in Windows XP, however the new API (perflib 2 ) is only available after Vista. I am using V2.

+4
source share
1 answer

I don't think this is possible, at least with a documented way. If you find and use some undocumented method, it may break with some OS / service pack or with future versions of Windows.

LODCTR UNLODCTR / . , , , () . / , .

, , EXE ( ).

, / - Microsoft Windows API.

+1

Source: https://habr.com/ru/post/1678848/


All Articles