Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Any method to getting notified on the Starting or Exiting of a particular process.

Any method to getting notified on the Starting or Exiting of a particular process.

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VCSharp007
    wrote on last edited by
    #1

    Hi All, I know the process name. I want to getting notified on the starting/Exiting of that particular process in my program. Is there any method for this other than repeatedly enumerating all the running processes and checking for that particular process. Thanx in advance.

    H 1 Reply Last reply
    0
    • V VCSharp007

      Hi All, I know the process name. I want to getting notified on the starting/Exiting of that particular process in my program. Is there any method for this other than repeatedly enumerating all the running processes and checking for that particular process. Thanx in advance.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      You need to read Detecting Windows NT/2K process execution[^](An article on how to get notification from the OS when a process starts ).

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      V 1 Reply Last reply
      0
      • H Hamid Taebi

        You need to read Detecting Windows NT/2K process execution[^](An article on how to get notification from the OS when a process starts ).

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        V Offline
        V Offline
        VCSharp007
        wrote on last edited by
        #3

        Thanks for the reply Hamid. This articles describes about the development of a Processor Monitoring Application by Implementing a Kernel-mode driver, using the kernel mode driver API PsSetCreateProcessNotifyRoutine(). But I can't use this since I have to implement the Process monitoring in my MFC dialog baesd application.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups