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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. NTservice

NTservice

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

    Hi I have a problem while converting my VC++ application into a service.. the service gets created.. but,when i try to start the service i get the error.... Error is: "Could not start the program on Local Computer. Error 1053:The service did not respond to the start or control request in a timely fashion".. is there any steps to be followed while convertine the exe into service... Thanks in Advance V.Govardhan Reddy.......

    N J 2 Replies Last reply
    0
    • T tns_ranjith

      Hi I have a problem while converting my VC++ application into a service.. the service gets created.. but,when i try to start the service i get the error.... Error is: "Could not start the program on Local Computer. Error 1053:The service did not respond to the start or control request in a timely fashion".. is there any steps to be followed while convertine the exe into service... Thanks in Advance V.Govardhan Reddy.......

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

      tns_ranjith wrote:

      is there any steps to be followed while convertine the exe into service...

      Yes. When a service is started, the service control manager expect the service to call StartServiceCtrlDispatcher()[^] with in 30 sec. I hope you havent called this function. Read the remark section in the above link for more details.

      nave [OpenedFileFinder]

      1 Reply Last reply
      0
      • T tns_ranjith

        Hi I have a problem while converting my VC++ application into a service.. the service gets created.. but,when i try to start the service i get the error.... Error is: "Could not start the program on Local Computer. Error 1053:The service did not respond to the start or control request in a timely fashion".. is there any steps to be followed while convertine the exe into service... Thanks in Advance V.Govardhan Reddy.......

        J Offline
        J Offline
        JudyL_MD
        wrote on last edited by
        #3

        Your service has not called SetServiceStatus with the dwCurrentState field in the SERVICE_STATUS parameter set to SERVICE_RUNNING within "a timely fashion." That time is something like 20 or 30 seconds. Services[^] Service example[^] Judy

        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