Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6953789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:31:25+00:00 2026-05-27T14:31:25+00:00

I have a good working experience with C# but now I want to develop

  • 0

I have a good working experience with C# but now I want to develop a simple(may be a console app) software which just detects the name and time of the process started or ended on my computer.

For example (I am assuming that my small app is already running) if a user opens Firefox then it should just insert firefox.exe into a database with time and if a user close it then it also do the same.

And same as above if a user open notepad then it should insert notepad.exe with time and so on.

I know how to insert values in database but I just need your help in identifying when the process/program starts or ends on my system.

Honestly saying I never developed this kind of application before so i have no idea that it can be possible using console app or i need to make a windows service app etc.

So please provide your answer just considering me as a beginner.

In the part of C# I am able to understand it so need to worry about that.

I am using visual studio 2010 with .net 4.0.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:31:26+00:00Added an answer on May 27, 2026 at 2:31 pm

    To do this without polling requires WMI. This is well supported in .net and you can use the ManagementEventWatcher class to subscribe to WMI notifications.

    This Code Project article illustrates how it is done. Here’s an extract showing how straightforward it is.

    notePad = new ProcessInfo("notepad.exe");
    notePad.Started +=
        new Win32Process.ProcessInfo.StartedEventHandler(this.NotepadStarted);
    notePad.Terminated +=
        new Win32Process.ProcessInfo.TerminatedEventHandler(this.NotepadTerminated);
    

    Note that ProcessInfo is a class implemented in the code attached to that article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to VC++ and I have good experience in working with C#
I have good knowledge on the working of a traditional .dll . Also the
I'm wondering if anyone have a good resource for working with Corba in Python?
Good Morning, I'm working on an ASP.NET 3.5 webforms application and have written the
I have experience with C++ but I've never really used Qt before. I'm trying
I am currently working in a .Net project but from university I have also
I have some good experience with Google Analytics and have been using it for
Background: I have extensive experience in web applications, but I have very little or
Does anyone have any experience with working with DevExpress' XPO in an environment where
Anybody have good examples of usability disasters? Here's an example. Hector is a manager

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.