Solved

Detecting window Application startup and closing event

Posted on 2009-07-15
1
339 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
ID: 24863550
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 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

21 Experts available now in Live!

Get 1:1 Help Now