How to close a currently active windows ?

  Suppose that there are 4 tasks
currently running on the system,
(For eg.  Calculator, Notepad, Word
and Power Point). How can we close
one of these windows using a VC++
program ??

   What exactly I want is, I would
like to display all the applications
currently running on the machine in
a Listbox. When I select any of them
and press a button labled 'Close'
then, that application should be
terminated.

   Plz help me regarding this!!
balakiran_bsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DAECommented:
Terminate an application is different for Windows 95/98/Me to Windows NT/2000/XP.

Be Careful!
0
jkrCommented:
Hmm, the same as with the other Q - the links cover the issue...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.