How to recover tasks/process order?

S

Stefan Caracas

Hi ,

i'm looking for code/method to get process list AND order of these processes
in task manager.

For instance , in task manager ( or on the windows task bar ) you have 5
applications , i would like to recover the order of these applications ( 1
to 5 )

I fould process list in System.Diagnostics.Process , but nothing concerning
the order as shown in task manager.

Any clue is welcome , VB.Net of possible

Thanks
 
C

C-Services Holland b.v.

Stefan Caracas schreef:
Hi ,

i'm looking for code/method to get process list AND order of these processes
in task manager.

For instance , in task manager ( or on the windows task bar ) you have 5
applications , i would like to recover the order of these applications ( 1
to 5 )

I fould process list in System.Diagnostics.Process , but nothing concerning
the order as shown in task manager.

Any clue is welcome , VB.Net of possible

Thanks

Processes in the taskmanager are ordered by the process ID (PID). Maybe
there's a property in that class that holds the PID and you can sort on
that.

Rinze
 
S

Stefan Caracas

Thanks. I'll study that.

I'm afraid i was not specific enough in my question , so i detail :

what i'm looking for is the application list that you obtain when pressing
ALT+TAB , and the focused application in this list.

Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top