Click here to Skip to main content
13,860,876 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


54 bookmarked
Posted 20 May 2008
Licenced CPOL

A Process viewer with alert notification

, 20 May 2008
Rate this:
Please Sign up or sign in to vote.
Simple process viewer that is capable of setting alerts for process events.


In this article, I would like to showcase a small utility which I developed for keeping track of
some process management tasks using a pleasant user interface. The bare idea I had in mind
was to develop a utility which can sit in the system tray and provide a mechanism to keep track of process startups and shutdowns and show the alert using some UI dialog. The utility being
developed is based on the mechanism of WMI architecture. It uses WMI to query process list, and to set process event handler.

So, now let’s start exploring the tour of this utility. Download and extract the source with this
article. You will find one executable ProcessViewer.exe. Start the executable. The startup
screen will look alike as follows:


The initial dialog as shown above displays all running process list with some basic details about
their memory usage, processor time allocated, no. of threads, process startup time, and most
important process ID.

Now, the main use of this utility comes into picture i.e. setting a process alert. For setting a
process alert select a process from display process list, by click the process name, or you can
enter a process executable if you want to set alert for process which is not started yet. After
selecting or inputting the process details the main window look like as follows:


In above displayed dialog, and alert has been set for calc.exe i.e. calculator utility for Windows.
As you may notice the calculator utility has not yet started, but the alert has been set.

Now, go to Start>Run, Type calc and press Enter.

The calculator utility will start, and the alerts will popup in System tray, as shown below.


As you have seen alert has shown that process is started, now close the Calculator application and wait to see, what will happen. You will be greeted with Process shutdown alert as shown below:


The utility I discussed above is just in preliminary stage, I will enhance it as I will get used to it, but for now it is proper showcase of how to use WMI architecture to leverage the process event monitoring. This simple utility can be extended to shoot up mails for process shutdown/startups and can be very useful for Administrators.


The utility shown in this article uses WMI architecture for implementation. Basic familiarity with WMI is required to understand the code submitted with article. One may have a look into other contributions on CodeProject as listed follows:

PS: This article having no relation with above mentioned contributions, one may use above for
getting some basic introduction to WMI.


Initial Revision 1.0 : By Ashu Fouzdar on May 21 2008.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Ashutosh Phoujdar
Architect Infosys Technologies Ltd.
India India
An Software Architect having work experience of 8+ years in Architecture, Design and Development of Enterprise class application for Analytic s and Business Intelligence. Having hands-on experience primarily in Microsoft Technology Stack including(but not limited to) .NET, SQL Server, SharePoint Server, Biztalk, Withal know to program in Java, Perl and Shell. Currently working as Product Technical Architect in Infosys Technologies Ltd. Products R&D division. He has worked on development of best in class Supply Chain Optimization System and Spend Classification Software for optimizing indirect spend. An avid programmer by heart and passionate for solving any challenging and complex business problems. He is advocate of Open source and love to share solutions with open source communities like
1.Stack Overflow
2. nHibernate

Award's :
Prize winner in Competition "Best article of May 2008"

Articles :
Click to see my CodeProject Articles

Open Source Contributions:
Click to see my Open Source Project

Blog :
Share a solution | Explore the .NET world

Link'd :
LinkedIn Profile

His Favorite(s) :
nHibernate - The best ORM.
nHibernate Contributed Tools

You may also be interested in...


Comments and Discussions

GeneralMy vote of 5 Pin
Manoj Kumar Choubey25-Apr-12 1:15
professionalManoj Kumar Choubey25-Apr-12 1:15 
GeneralThanks bro Pin
Member 38214724-Oct-08 1:38
memberMember 38214724-Oct-08 1:38 
QuestionGreat Idea Pin
Brian Holdridge27-May-08 4:40
memberBrian Holdridge27-May-08 4:40 
AnswerRe: Great Idea Pin
Ashutosh Phoujdar3-Jun-08 2:27
memberAshutosh Phoujdar3-Jun-08 2:27 
GeneralRe: Great Idea Pin
abhi131024-Jun-08 0:58
memberabhi131024-Jun-08 0:58 
GeneralAccess Denied errors Pin
gscobee128-Mar-14 7:11
membergscobee128-Mar-14 7:11 
General[Message Removed] Pin
Mojtaba Vali25-May-08 1:53
memberMojtaba Vali25-May-08 1:53 
GeneralThanks !!! Pin
Ashutosh Phoujdar21-May-08 20:46
memberAshutosh Phoujdar21-May-08 20:46 
Generalsimply greate Pin
Abhijit Jana21-May-08 20:07
mentorAbhijit Jana21-May-08 20:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.190214.1 | Last Updated 21 May 2008
Article Copyright 2008 by Ashutosh Phoujdar
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid