From: Andrus on
How to create task manager which shows process description and CPU columns
like
in windows Task Manager?

I looked into Process class but it does not have Task Maanger CPU and
process description
column properties.
Also it returns lot of duplicate process names as "svchost" .
How to explore from C# code what is really running instead of svchost
generic name ?

Andrus.

From: Peter Duniho on
Andrus wrote:
> How to create task manager which shows process description and CPU
> columns like
> in windows Task Manager?
>
> I looked into Process class but it does not have Task Maanger CPU and
> process description
> column properties.
> Also it returns lot of duplicate process names as "svchost" .

That's because there is more than one process named "svchost". You
should see the same in Task Manager, especially if you are showing
processes for all users.

> How to explore from C# code what is really running instead of svchost
> generic name ?

I'm not aware of anything in .NET that provides that full level of
detail. It's possible there's support in WMI, which you can access via
..NET, but I don't know for sure. Otherwise, you will have to enumerate
the processes with the unmanaged Win32 API.

Pete