"Jeff Latimer" lats@yless4u.com.au wrote:
My understanding of your question is: if I am removing the tests in one place then they should not be be necessary in the other. This is not the case. A call to PdhLookupPerfNameByIndexA will call PdhLookupPerfNameByIndexW and thus execute the all tests. The way it is at the moment the tests get executed twice (in the negative), this change ensures that they only execute once.
That's true for index, but not for machine.