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 can i terminate a Services using other service [modified]

How can i terminate a Services using other service [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
7 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.
  • K Offline
    K Offline
    Kotesh N
    wrote on last edited by
    #1

    When a Service called " A " is running in our system. I want to terminate that particular Service using the other Service name " B ". or It is possible to Terminate a Service. Kindly help in this matter. Regards, Chinna -- modified at 6:22 Thursday 11th January, 2007

    N H 2 Replies Last reply
    0
    • K Kotesh N

      When a Service called " A " is running in our system. I want to terminate that particular Service using the other Service name " B ". or It is possible to Terminate a Service. Kindly help in this matter. Regards, Chinna -- modified at 6:22 Thursday 11th January, 2007

      N Offline
      N Offline
      neilsolent
      wrote on last edited by
      #2

      OpenService(), ControlService()

      cheers, Neil

      K 1 Reply Last reply
      0
      • K Kotesh N

        When a Service called " A " is running in our system. I want to terminate that particular Service using the other Service name " B ". or It is possible to Terminate a Service. Kindly help in this matter. Regards, Chinna -- modified at 6:22 Thursday 11th January, 2007

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

        See Starting a Service in Windows XP[^]


        WhiteSky


        K 1 Reply Last reply
        0
        • N neilsolent

          OpenService(), ControlService()

          cheers, Neil

          K Offline
          K Offline
          Kotesh N
          wrote on last edited by
          #4

          Thank you for valuable suggestion, but trhe above functions Service could not terminate. its Open a particular Service and ControlService means it send a reguest to the handler to enable the options of Start, Restart, Stop & etc.... i want to Terminate a running Service. Regards, Chinna

          N 1 Reply Last reply
          0
          • H Hamid Taebi

            See Starting a Service in Windows XP[^]


            WhiteSky


            K Offline
            K Offline
            Kotesh N
            wrote on last edited by
            #5

            Thank you for valuable suggestion, I want to Terminate a running Service. Regards, Chinna

            H 1 Reply Last reply
            0
            • K Kotesh N

              Thank you for valuable suggestion, I want to Terminate a running Service. Regards, Chinna

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

              And also see http://www.codeproject.com/system/AMFSServiceManager.asp http://www.codeproject.com/system/serviceskeleton.asp[^]


              WhiteSky


              1 Reply Last reply
              0
              • K Kotesh N

                Thank you for valuable suggestion, but trhe above functions Service could not terminate. its Open a particular Service and ControlService means it send a reguest to the handler to enable the options of Start, Restart, Stop & etc.... i want to Terminate a running Service. Regards, Chinna

                N Offline
                N Offline
                neilsolent
                wrote on last edited by
                #7

                What's the difference between stopping and terminating a service? To stop a service use ControlService() with a SERVICE_CONTROL_STOP for dwControl.

                cheers, Neil

                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