Home > Back-end >  PdhAddCounter usage
PdhAddCounter usage

Time:10-14

I'm Windows2008 work on 64 - bit system PdhAddCounter,
PdhStatus=PdhAddCounter (hQuery _TEXT (" Process (_TEXT (" QQ ")) \ \ % Processor Time "), and 0, pCounterHandle);
PdhStatus is always a big negative
But pdhStatus=PdhAddCounter (hQuery, _TEXT (" \ \ System \ \ System Up Time "), and 0, pCounterHandle);
PdhStatus is 0
This is how to return a responsibility
  • Related