Solved

Detecting window Application startup and closing event

Posted on 2009-07-15
1
338 Views
Last Modified: 2013-12-17
Hi Experts,

Is there a way in C# 2005 that I can detect the startup and closing event of all running windows applications?

For example, when my C# 2005 application is running, it can monitor other running windows application.  It can detect that the user has invoked a window application or shutted down a window application.

C# functions, Win32 API, guidelines, and brief sample code are very much appreciated

Thank you!
0
Comment
Question by:cskiong
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
Comment Utility
I would think that you might be able to use WMI to detect the creation and deletion of a process, and determine what the application is associated with the process.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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

6 Experts available now in Live!

Get 1:1 Help Now