Thread: WIndows Process List/Hooks

  1. #1
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195

    WIndows Process List/Hooks

    Hi. Im currently building a service that tries to get the list of processes currently running in the system. Is this possible for an application to do?? Also, I want to install either hooks (or some equivalent way) to monitor when there is a change in forcus or when an application loads...etc. is this possible??

    Can you recommend any reading I can do on these topics?
    Founder and avid member of the Internationsl Typo Associateion

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    Last edited by Dante Shamest; 06-06-2006 at 10:12 AM.

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    http://support.microsoft.com/default...;en-us;Q175030

    "How To Enumerate Applications Using Win32 APIs"

    Also, look into SetWindowsHookEx / WH_SHELL hooks.

  4. #4
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195
    I appreciate you help thus far.

    I wrote a simple program that gets the Process listing, and it works fine. But im having trouble hooking into the WH_SHELL message. Im only getting a small number of messages, only conisiting of HSHELL_WINDOWACTIVATED. Im starting to think that this hook only monitors what MY application is doing and no what every application in the system is doing.

    I can post my code if need be, but its rather large.
    Founder and avid member of the Internationsl Typo Associateion

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    1
    Post the portion that you need some verification on.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  2. Round Robin Scheduling using c.
    By eclipt in forum C Programming
    Replies: 8
    Last Post: 12-28-2005, 04:58 PM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM