Solved

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

Posted on 2002-03-17
13
166 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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now