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

This is a discussion on Is there a way to tell when a new process is opened within the Windows Programming forums, part of the Platform Specific Boards category; Hi, i need a way to keep track of every time a new window is opened, and then get the ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    63

    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
    Location
    Umeň, Sweden
    Posts
    555
    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
    Location
    Estonia
    Posts
    2,318
    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 01: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, 11: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, 10:24 AM
  4. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 02:43 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 08:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21