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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how:notification when process is created

how:notification when process is created

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
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.
  • H Offline
    H Offline
    happycpp
    wrote on last edited by
    #1

    hello everybody.. i was making a small program that enumerates processes and check everyone for a specified process and do some actions if the process is found... i'm actually wondering if there's a way to know when a process is created without having to enumerate the whole processes in time intervals to check the specified one...in other words, is there a way to put a notification hook that triggers only when a process is created...and if there's such a thing,do i have to enumerate all the processes when the notification occurs or the notification hook gives informations about the process created which i can check without enumerating.. example: how to know if an instance of "notepad" is created... hope i made it clear..

    G 1 Reply Last reply
    0
    • H happycpp

      hello everybody.. i was making a small program that enumerates processes and check everyone for a specified process and do some actions if the process is found... i'm actually wondering if there's a way to know when a process is created without having to enumerate the whole processes in time intervals to check the specified one...in other words, is there a way to put a notification hook that triggers only when a process is created...and if there's such a thing,do i have to enumerate all the processes when the notification occurs or the notification hook gives informations about the process created which i can check without enumerating.. example: how to know if an instance of "notepad" is created... hope i made it clear..

      G Offline
      G Offline
      gamitech
      wrote on last edited by
      #2

      i think that you can do this with hooks in 2 ways. Either hook with CBT_PROC or you can hook the createprocess function and seee each time it's called. I f you work with drivers this will be very handy gabby

      H 1 Reply Last reply
      0
      • G gamitech

        i think that you can do this with hooks in 2 ways. Either hook with CBT_PROC or you can hook the createprocess function and seee each time it's called. I f you work with drivers this will be very handy gabby

        H Offline
        H Offline
        happycpp
        wrote on last edited by
        #3

        can you tell me what API calls are needed to do it..

        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