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. how to findout that a certain program is running or not

how to findout that a certain program is running or not

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
5 Posts 4 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.
  • V Offline
    V Offline
    V_shr
    wrote on last edited by
    #1

    I want to write a program and I need to see that is a certain program running or not , how can I do that ? thanks

    A 1 Reply Last reply
    0
    • V V_shr

      I want to write a program and I need to see that is a certain program running or not , how can I do that ? thanks

      A Offline
      A Offline
      aatul
      wrote on last edited by
      #2

      If the program is service, you can find with IsServiceRunning API. If it is Window/Dialog Exe, you can do it with FindWindowEx API. Read how to use FindWindowEx API.

      V 1 Reply Last reply
      0
      • A aatul

        If the program is service, you can find with IsServiceRunning API. If it is Window/Dialog Exe, you can do it with FindWindowEx API. Read how to use FindWindowEx API.

        V Offline
        V Offline
        V_shr
        wrote on last edited by
        #3

        thanks a lot

        D 1 Reply Last reply
        0
        • V V_shr

          thanks a lot

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Be careful when using FindWindowEx(). It has the potential to cause a deadlock situation.


          "A good athlete is the result of a good and worthy opponent." - David Crow

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          H 1 Reply Last reply
          0
          • D David Crow

            Be careful when using FindWindowEx(). It has the potential to cause a deadlock situation.


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            I think its good advise about FindWindow.;)


            WhiteSky


            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