How can I retrieve all the Applications name that is running on my computer programmatically?

How can I retrieve all the Applications name that is running on my computer programmatically?
I need The applications not the procceses?
Please support with code.
MohMohAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
See http://support.microsoft.com/default.aspx?scid=kb;EN-US;q175030 ("HOWTO: Enumerate Applications Using Win32 APIs (Q175030)") - it comes with sample code.
0
 
MohMohAuthor Commented:
But this for enumerate the whole proccesses not only applications.
0
 
proskigCommented:
Windows does not distinguish between process and application. Probably the best way is to say that "application is a top-most process (parent PID is 0)".
So just use the solution above and look for processes with empty PPID
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
jkrCommented:
>>But this for enumerate the whole proccesses not only applications.

What exactly is the difference between a process and an application?
0
 
griesshCommented:
Without making it complicated, a process is every running executable that has a PID(Process ID), an application is a process that has a User Interface.

I know the perfectionists will kill me for this staement, but I will proudly die :-)

======
Werner
0
 
proskigCommented:
and a "user interface" is?
0
 
MohMohAuthor Commented:
For proskig:The proccess with PPID equal 0 does not mean that its a top most proccess.
0
 
griesshCommented:
Weeelll, what might that be, a "User Interface"?

======
Werner
0
 
jkrCommented:
>>The proccess with PPID equal 0

... is always is the "Idle" process on NT/W2k
0
 
MohMohAuthor Commented:
No answer
0
 
jkrCommented:
>>No answer

No delete!
0
 
griesshCommented:
Dear MohMoh

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "jkr"

comment(s) as an answer.

If you think your question was not answered at all, you can explain here why you want to do this and post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/


PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
MindphaserCommented:
Force accepted

** Mindphaser - Community Support Moderator **
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.