From: Chizl on
What is the best way to get CPU utilization without using WMI? Is there
an API I'm missing?


From: David on
Chizl wrote:
> What is the best way to get CPU utilization without using WMI? Is there
> an API I'm missing?


see api newsgroup (comp.os.ms-windows.programmer.win32)
where all methods have been given for ages...
From: Igor Tandetnik on
"Chizl" <Chizl(a)NoShitMail.com> wrote in message
news:eAgWiS8rIHA.672(a)TK2MSFTNGP02.phx.gbl
> What is the best way to get CPU utilization without using WMI? Is
> there an API I'm missing?

Performance Data Helper (PDH). See PdhOpenQuery et al.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


From: Chizl on
"Igor Tandetnik" <itandetnik(a)mvps.org> wrote
>
> Performance Data Helper (PDH). See PdhOpenQuery et al.

Currently using that, but I'm getting back inconsistent values. Tried many
different ways to figure out that issue without any good results, so I'm
looking for anything else.


From: David on
Chizl wrote:
> "Igor Tandetnik" <itandetnik(a)mvps.org> wrote
>> Performance Data Helper (PDH). See PdhOpenQuery et al.
>
> Currently using that, but I'm getting back inconsistent values. Tried many
> different ways to figure out that issue without any good results, so I'm
> looking for anything else.
>
>

As I said, all methods (documented, undocumented) have been given on
win32 api newsgroup