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. Windows API
  4. Can't change service status of service created by myself on Vista [modified]

Can't change service status of service created by myself on Vista [modified]

Scheduled Pinned Locked Moved Windows API
6 Posts 2 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.
  • M Offline
    M Offline
    Member 4212810
    wrote on last edited by
    #1

    I create a service application and intall it on vista. But the status of service can't be changed. The menu appeared after right click the service item in services window are all gray(like start, stop, etc.). The service application can install on Windows 2003. The status can be changed. Is there any difference between 2003 and vista to create a service application.

    modified on Sunday, May 18, 2008 10:21 PM

    V 1 Reply Last reply
    0
    • M Member 4212810

      I create a service application and intall it on vista. But the status of service can't be changed. The menu appeared after right click the service item in services window are all gray(like start, stop, etc.). The service application can install on Windows 2003. The status can be changed. Is there any difference between 2003 and vista to create a service application.

      modified on Sunday, May 18, 2008 10:21 PM

      V Offline
      V Offline
      Vaibhav Deshpande 0
      wrote on last edited by
      #2

      Hi!! Please elaborate the problem. Unable to understand the buttons???

      M 1 Reply Last reply
      0
      • V Vaibhav Deshpande 0

        Hi!! Please elaborate the problem. Unable to understand the buttons???

        M Offline
        M Offline
        Member 4212810
        wrote on last edited by
        #3

        I change my description. Thanks for your kind reminder! :)

        V 1 Reply Last reply
        0
        • M Member 4212810

          I change my description. Thanks for your kind reminder! :)

          V Offline
          V Offline
          Vaibhav Deshpande 0
          wrote on last edited by
          #4

          Hi!! I have worked on your issue.. I m getting the same result i.e. the start, stop, restart these options are not working. I think you are trying to change the status of the service after logging in the Guest account (other than Administrator) so that these options are not working. If logged in an Administrator account and try to change the status then you will get appropriate results. Try it if it works then please let me know... With best wishes, Vaibhav Deshpande

          M 1 Reply Last reply
          0
          • V Vaibhav Deshpande 0

            Hi!! I have worked on your issue.. I m getting the same result i.e. the start, stop, restart these options are not working. I think you are trying to change the status of the service after logging in the Guest account (other than Administrator) so that these options are not working. If logged in an Administrator account and try to change the status then you will get appropriate results. Try it if it works then please let me know... With best wishes, Vaibhav Deshpande

            M Offline
            M Offline
            Member 4212810
            wrote on last edited by
            #5

            I logged in the Administrator account. And I found it seems to relate with UAC. When I disable UAC. It can works smoothly. How can I do in my code to enable privilege related with UAC. Thanks

            modified on Monday, May 19, 2008 8:48 PM

            V 1 Reply Last reply
            0
            • M Member 4212810

              I logged in the Administrator account. And I found it seems to relate with UAC. When I disable UAC. It can works smoothly. How can I do in my code to enable privilege related with UAC. Thanks

              modified on Monday, May 19, 2008 8:48 PM

              V Offline
              V Offline
              Vaibhav Deshpande 0
              wrote on last edited by
              #6

              Hi!! If you have logged in as Administrator and right clicking the service the you should get start option highlighted and other options grayed (which is I am getting.). If you think it is related to UAC then please refer the dam good articles of Jaisvar. I am forwarding the link. http://www.codeproject.com/KB/vista-security/VistaSessions.aspx[^] Please go through it. It had helped me a lot... With regards, Vaibhav Deshpande.

              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