Task Manager: Applications vs Processes

This is a discussion on Task Manager: Applications vs Processes within the Windows Programming forums, part of the Platform Specific Boards category; I'm monitoring a snmp-agent enabled Windows 2000 machine by retrieving the hrSWRunTable from the HOST-RESOURCES-MIB. I have to code some ...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    2

    Task Manager: Applications vs Processes

    I'm monitoring a snmp-agent enabled Windows 2000 machine by retrieving the hrSWRunTable from the HOST-RESOURCES-MIB. I have to code some C that accepts the list of processes from the hrSWRunTable and outputs their respective applications. I'm wondering if this is possible.

    I'm not 100% sure on the difference between an application and a process. I thought an application was a collection of user processes that worked together to perform a function, while a process was a single executable module.

    How does Task Manager know the difference between an application and a process? Is it because the application is running in the foreground in an open window?

    My list of processes will include information on PID, name, path, parameters, run type and status.

    For example, I've seen this as an application many times:

    PID: 9520
    name: IEXPLORE.EXE
    path: C:\Program Files\Internet Explorer\
    parameters:
    run type: application
    status: running

    But this isn't under the application tab:

    PID: 700
    name: SQLAGENT.EXE
    path:
    parameters:
    run type: application
    status: running

    And when I check the task manager both processes are running under the same user "user1", but only internet explorer shows up under applications.

    Am I going to have to apply some sort of filter that links process names to their application?

    Thanks.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    I think your guess is pretty much right. So does this person, apparently. http://www.ocforums.com/showthread.php?t=573843

    I don't know how you could determine this list of applications, however.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    How does Task Manager know the difference between an application and a process? Is it because the application is running in the foreground in an open window?
    From Microsoft Windows Internal version 4 book:
    The Application tab lists the top-level visible windows on all the desktops in the interactive window station (By default, there are two desktop objects-you can create more by using the Windows CreateDesktop function)

    Processes tab list all running processes on workstation

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    2
    Thank you very much.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-02-2008, 03:14 AM
  2. First MFC app - Not listed in Task Manager Applications
    By Dino in forum Windows Programming
    Replies: 3
    Last Post: 03-08-2008, 10:06 AM
  3. Task Manager technic
    By NoFearXD in forum Windows Programming
    Replies: 10
    Last Post: 05-26-2007, 10:09 AM
  4. Replies: 5
    Last Post: 04-17-2003, 07:07 AM
  5. Scheduling Algo
    By BigDaddyDrew in forum C++ Programming
    Replies: 41
    Last Post: 03-08-2003, 10:00 AM

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