notification of new processes

This is a discussion on notification of new processes within the Windows Programming forums, part of the Platform Specific Boards category; is there a way to be notified whenever a new process is started? say, i want a message to be ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    notification of new processes

    is there a way to be notified whenever a new process is started? say, i want a message to be sent to my program when a certain window pops up, for example a web browser or an explorer window. is this possible?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I'm sure it is possible since I've seen programs do it. I'm intrigued though, so give me a minute to look for an answer.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I'm not finding any specialized functions for this task, so I can only recommend using hooks. If I find anything better than I'll post it.

  4. #4
    Registered User
    Join Date
    Dec 2002
    Posts
    119
    You can use EnumDesktopWindows to find all the processes running. If your program sets a timer for every 300 ms and enumerates the processes (or uses FindWindow if you know the title text) You can immediately respond and kill the window or do whatever you want.

    -Futura

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 34
    Last Post: 05-27-2009, 01:26 PM
  2. Why isn't this printing all 1024 processes?
    By DayOldPorridge in forum C Programming
    Replies: 4
    Last Post: 04-19-2009, 06:47 PM
  3. Processes not dying
    By Elkvis in forum Linux Programming
    Replies: 12
    Last Post: 04-23-2008, 09:59 AM
  4. binary tree of processes
    By gregulator in forum C Programming
    Replies: 1
    Last Post: 02-28-2005, 12:59 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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