Solved

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

Posted on 2002-03-17
13
168 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
  • 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cross compile release version of c++ program for linux 2 132
Embarcadero C++ Builder XE2 TDateTime 8 70
Compile GLUT with Visual Studio 2015 1 143
Issues with C++ Class 19 92
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

776 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