Results 1 to 7 of 7

Thread: Process Monitor

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    17

    Post Process Monitor

    Hey
    So I got this idea to write a very small application for a school project that raises a balloon from the system tray everytime a new process is getting launched or an existing process quits.

    With my current code, I am getting the list of processes using a timer.

    This list needs to be compared with the previous list and detect differences (if this is possible, or should I use a different concept)? I have no clue how to do this.

    I currently have:
    -A ListView (ListView1), with the View property to "Details"
    -A Timer (at a 5000ms interval), with the following code:
    Code:
            Dim processList() As Process
            processList = Process.GetProcesses()
            For Each proc As Process In processList
                Dim Item As New ListViewItem
                Item.Text = proc.Id.ToString
                Item.SubItems.Add(proc.ProcessName.ToString)
                Item.SubItems.Add(proc.Responding.ToString)
                ListView1.Items.Add(Item)
            Next
    Anyone can help me out with the comparison part?

    tl;dr: Need some help with a piece of code to notify the user if a new process started or an existing process quit.
    Last edited by DumbAndDumber; Jun 15th, 2011 at 11:37 AM.
    If my post helped you out, please rate me!
    Thread resolved? Mark it as Resolved!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width