Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Program Termination...

Program Termination...

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZarrinPour
    wrote on last edited by
    #1

    How can i understand one program is terminated? for example suppose the NOTEPAD.EXE is running ,now i want to be notified whenever that it is terminated? It is very important for me to understand.Please Help Me. Please excuse me for bad comments,my english isn't well. Thanks a lot.

    N 1 Reply Last reply
    0
    • Z ZarrinPour

      How can i understand one program is terminated? for example suppose the NOTEPAD.EXE is running ,now i want to be notified whenever that it is terminated? It is very important for me to understand.Please Help Me. Please excuse me for bad comments,my english isn't well. Thanks a lot.

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      If you have it's process handle, you can wait on the handle using one of the WaitForXXXX API calls. Else if you have the HWND of the window, just do an IsWindow on it and then do a GetWindowText etc... and verify that it;s the same window. Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      T 1 Reply Last reply
      0
      • N Nish Nishant

        If you have it's process handle, you can wait on the handle using one of the WaitForXXXX API calls. Else if you have the HWND of the window, just do an IsWindow on it and then do a GetWindowText etc... and verify that it;s the same window. Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        T Offline
        T Offline
        TomKat
        wrote on last edited by
        #3

        check out my winsock hook - api hooking revealed article , hook the TerminateProcess() function and get notified of any process closing ! //more in the article //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups