Solved

Detecting window Application startup and closing event

Posted on 2009-07-15
1
340 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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

18 Experts available now in Live!

Get 1:1 Help Now