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. Is a service program running ? How to find ?

Is a service program running ? How to find ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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.
  • S Offline
    S Offline
    Sakthiu
    wrote on last edited by
    #1

    Dear All, I need to find out that my service program ("rr.exe" service exe) is running or not by coding ?. How ?. I used shellExecute() fn to start my service. I dont know is that running. I want to checkout by coding. How ? Thanks.

    H D 2 Replies Last reply
    0
    • S Sakthiu

      Dear All, I need to find out that my service program ("rr.exe" service exe) is running or not by coding ?. How ?. I used shellExecute() fn to start my service. I dont know is that running. I want to checkout by coding. How ? Thanks.

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

      See EnumServicesStatus


      WhiteSky


      D 1 Reply Last reply
      0
      • S Sakthiu

        Dear All, I need to find out that my service program ("rr.exe" service exe) is running or not by coding ?. How ?. I used shellExecute() fn to start my service. I dont know is that running. I want to checkout by coding. How ? Thanks.

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

        Sakthiu wrote:

        I used shellExecute() fn to start my service.

        You should be able to use the SERVICE_CONTROL_INTERROGATE control code.


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        1 Reply Last reply
        0
        • H Hamid Taebi

          See EnumServicesStatus


          WhiteSky


          D Offline
          D Offline
          dpsingh_1
          wrote on last edited by
          #4

          EnumServiceStatus would be best thing. you can also use CreateToolhelp32Snapshot as an alternative

          H 1 Reply Last reply
          0
          • D dpsingh_1

            EnumServiceStatus would be best thing. you can also use CreateToolhelp32Snapshot as an alternative

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

            Me or Sakthiu ;)


            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