Solved

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

Posted on 2002-03-17
13
171 Views
Last Modified: 2010-04-01
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.
0
Comment
Question by:MohMoh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +2
13 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 6874292
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
 

Author Comment

by:MohMoh
ID: 6876429
But this for enumerate the whole proccesses not only applications.
0
 
LVL 5

Expert Comment

by:proskig
ID: 6876495
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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 86

Expert Comment

by:jkr
ID: 6876747
>>But this for enumerate the whole proccesses not only applications.

What exactly is the difference between a process and an application?
0
 
LVL 11

Expert Comment

by:griessh
ID: 6876793
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
 
LVL 5

Expert Comment

by:proskig
ID: 6876809
and a "user interface" is?
0
 

Author Comment

by:MohMoh
ID: 6879564
For proskig:The proccess with PPID equal 0 does not mean that its a top most proccess.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6879770
Weeelll, what might that be, a "User Interface"?

======
Werner
0
 
LVL 86

Expert Comment

by:jkr
ID: 6879781
>>The proccess with PPID equal 0

... is always is the "Idle" process on NT/W2k
0
 

Author Comment

by:MohMoh
ID: 6889165
No answer
0
 
LVL 86

Expert Comment

by:jkr
ID: 7111824
>>No answer

No delete!
0
 
LVL 11

Expert Comment

by:griessh
ID: 7122047
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
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7138025
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question