Thread: Is there a way to tell when a new process is opened

  1. #1
    Registered User
    Join Date
    Jul 2006

    Is there a way to tell when a new process is opened

    Hi, i need a way to keep track of every time a new window is opened, and then get the name of it. I can do this using enumwindows in a loop, but i was hoping there might be another way. Thanks.

  2. #2
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Umeň, Sweden
    Creating a global hook with the WH_SHELL parameter will let you catch any creation of a new window. I'm not sure if it will work for all processes though, since a program doesn't have to create a window to run.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Getting notifications of new process is hard work. I did it once - hooked all processes' CreateProcessA and CreateProcessW. You might not want to get that hackish.
    Last edited by maxorator; 08-12-2007 at 12:22 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. init adopts zombie process?
    By password636 in forum Linux Programming
    Replies: 4
    Last Post: 07-01-2009, 10:05 AM
  2. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 02:14 PM
  3. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  4. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 01:43 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM