how to get the names of all applications running in the device

I need to get the names of all the applications running in the device like in windows task manager. The processes runing in the device can be captured using toolhelp functions. What are the functions that can be used to get the applications data .

any idea
Thank you..



Answer this question

how to get the names of all applications running in the device

  • svxtc

    What are applications in your opinion and how they are different from processes As soon as you answer that question (to yourself) it would be very easy for you to filter out “processes” processes from application “processes”.



  • christine21

    I want to filter applications and processes like in classic Task Manager in XP (you know there are two tabs in classic Task Manager in XP - applications and processes) Wink I want to make it that way that when you filter only applications you must not see system apps/processes like GWES.EXE, DEVICE.EXE, NK.EXE etc.
    Simply I need to display ONLY apps what are displaying in classic Window Mobile Task Manager Wink So I think I need to hide system processes... hmm... but how can I identify them...

  • Stryfe

    Thanks for replying
    This is not what i am looking for
    in the task manager there are two tabs for Applications, and Processes.
    I want to get the names of applications( tasks) not the names of processes..

    I am familiar with those all functions in toolhelp.
    toolhelp does not support to get the names of the applications...

    Thanks v much
    Mahesh


  • Furtive Networks

    I am not aware of any managed API that can do this task. For native APIs you can p/invoke to toolhelp as you mentioned.

    Roughly you would call CreateToolhelp32Snapshot to get the snapshot handle, then call Process32First and Process32Next to enumerate through the processes. For each process you get a PROCESSENTRY32 structure filled in which has a member szExeFile you can look at.

    MSDN toolhelp link: http://msdn2.microsoft.com/en-us/library/aa450774.aspx

    -Noah Falk

    .Net Compact Framework


  • Exploder

    Take a look at this old article of mine:

    http://msdn2.microsoft.com/en-us/library/aa446560.aspx


  • MrOctree

    Hello your article is very helpfull Wink But I need to know how to display ONLY running applications NOT all procesess

  • Scott McKeown

    Thanks for the guide Wink I will try find it Wink

  • Amde

    That tab simply shows top level active windows. If application does not have a top level window or it’s hidden or has no name it won’t be shown. If application has several top level active windows they all will be shown. If that’s what you want simply enumerate windows (search if you don’t know how).



  • how to get the names of all applications running in the device