CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Posts
    3

    Help PLEASE! Task Manager Manipulation

    I am looking for a way to incorporate a function inside of my win32 application to query the NT task manager for certain *.exe executables to see if a particular application is up and running. Keep in mind, the CWnd::FindWindow() function will NOT work because I am looking for an non-windows executable, that is running (it's run only via the MS-DOS side). How can I go about inserting functionality inside my "manager" application to query the 1st column in the Task Manager area to my application and have a checkbox to be checked off if the executable is actually running?

    I am in desperate help and need. Please advise. I can't continue my project until I find this.

    Thanks!

    SFoster73


  2. #2
    Join Date
    Jun 1999
    Posts
    315

    Re: Help PLEASE! Task Manager Manipulation

    you don't need to even query task manager...just use GetProcAddress (i think that's the function) it takes a string specifying the process to get the address of...if you specify a process that isn't running, it'll return NULL.


    miked

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

Featured