Results 1 to 8 of 8

Thread: Getting a list of all Running Applications

  1. #1

    Thread Starter
    Junior Member RichG-W's Avatar
    Join Date
    Mar 2001
    Location
    Bradford(the curry capital of the UK), West Yorkshire, England
    Posts
    22

    Question Getting a list of all Running Applications

    Is there a straight forward method of getting a list of all the running applications, either an API call or VB code.
    Not writing down on a piece of paper what appears in the taskbar

    I don't need reams of sample code just to be pointed in the right direction

    Thanx

  2. #2
    vking
    Guest
    chrisjk,

    Will the code work for Win NT4.0???

  3. #3

    Thread Starter
    Junior Member RichG-W's Avatar
    Join Date
    Mar 2001
    Location
    Bradford(the curry capital of the UK), West Yorkshire, England
    Posts
    22

    Wink

    Chrisjk

    Have tried your code but to no avail, mabye I should have mentioned that I'm using NT4(like vking) as the API functions that you use do not appear in my API viewer

  4. #4
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    there is an api call called enumwindowex

    an example can be found at allapi.net

    I do have the code but its at work and Im at home at the mo

    if you still need it post another query tomorrow to remind me to give it to you

  5. #5

    Unhappy enumwindowex

    Can you please post the code that returns a list of processes that are running on an NT4 machine. I have the code that does it on every other Microsoft platform - but not NT4.0.

    rudvs2 mentions calling enumwindowex API ???

    Thanks.

  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    To all those who asked if it works on NT...

    I cannot say, however I have tested on 98 and 2000, both of which work as expected.

    I've attached a working example, if it doesn't work for you, well then I can't say as I don't have an NT machine to try it on.
    Attached Files Attached Files

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    I have a possible solution NT people can try:

    Replace ProcesFirst and ProcessNext with ProcessFirst32 and ProcessNext32.

  8. #8

    Angry NT4 Services still a mystery

    I'm afraid the suggestion that chrisjk made about replacing processnext with processnext32 has no effect - the problem appears to lie within CreateToolhelpSnapshot or CreateToolhelpSnapshot32.

    I would appreciate a working solution on NT4 - I have a solution on W95 / W98 / NT2000 - but NT4 is different !!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width