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. Hi help me to run my codeservice mode

Hi help me to run my codeservice mode

Scheduled Pinned Locked Moved C / C++ / MFC
help
6 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.
  • U Offline
    U Offline
    usha_dolly
    wrote on last edited by
    #1

    Help to run my project in Sevice mode Getting error 1053 , when trying to start from service mode dil

    K 1 Reply Last reply
    0
    • U usha_dolly

      Help to run my project in Sevice mode Getting error 1053 , when trying to start from service mode dil

      K Offline
      K Offline
      kakan
      wrote on last edited by
      #2

      Error 1053 means ERROR_SERVICE_REQUEST_TIMEOUT It seems as if your code isn't responding to some kind of event. If you want a more detailed answer, please give more details about the problem.

      U 1 Reply Last reply
      0
      • K kakan

        Error 1053 means ERROR_SERVICE_REQUEST_TIMEOUT It seems as if your code isn't responding to some kind of event. If you want a more detailed answer, please give more details about the problem.

        U Offline
        U Offline
        usha_dolly
        wrote on last edited by
        #3

        LPCTSTR name123 = "sangaraju" ; SC_HANDLE hSCManager =( OpenSCManager(NULL,NULL,SC_MANAGER_CREATE_SERVICE)); SC_HANDLE hi = OpenService(hSCManager,name123,SERVICE_ALL_ACCESS ); SC_HANDLE hSCreate = CreateService(SCManager,name123,name123 ,SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS,SERVICE_AUTO_START,SERVICE_ERROR_IGNORE, "\"d:\\Shu.exe\"",NULL,NULL,NULL,NULL,NULL); and then Closed the services...... Opened the Windows services i found Startup type = automatic , and status is empty But when iam trying to start in the servics , Error which iam getting is Error 1053 : " The service did not respond to the start or control request in timly fashion" Please help me Kakan....... Thanks in advance

        K 1 Reply Last reply
        0
        • U usha_dolly

          LPCTSTR name123 = "sangaraju" ; SC_HANDLE hSCManager =( OpenSCManager(NULL,NULL,SC_MANAGER_CREATE_SERVICE)); SC_HANDLE hi = OpenService(hSCManager,name123,SERVICE_ALL_ACCESS ); SC_HANDLE hSCreate = CreateService(SCManager,name123,name123 ,SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS,SERVICE_AUTO_START,SERVICE_ERROR_IGNORE, "\"d:\\Shu.exe\"",NULL,NULL,NULL,NULL,NULL); and then Closed the services...... Opened the Windows services i found Startup type = automatic , and status is empty But when iam trying to start in the servics , Error which iam getting is Error 1053 : " The service did not respond to the start or control request in timly fashion" Please help me Kakan....... Thanks in advance

          K Offline
          K Offline
          kakan
          wrote on last edited by
          #4

          Hello. Your servce code has to respond on different messages, such as start, stop, pause e.t.c. As well as responding to queries from the OS... I think you will have to do your homework on this one (study), or (quicker, i think). Follow the advice from ThatsAlok and check out XYNTService. Use it as it is or study the code. It's very informational (Is that an English word? :)) Kakan

          T 1 Reply Last reply
          0
          • K kakan

            Hello. Your servce code has to respond on different messages, such as start, stop, pause e.t.c. As well as responding to queries from the OS... I think you will have to do your homework on this one (study), or (quicker, i think). Follow the advice from ThatsAlok and check out XYNTService. Use it as it is or study the code. It's very informational (Is that an English word? :)) Kakan

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            kakan wrote:

            It's very informational (Is that an English word? )

            look like to be :)

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            K 1 Reply Last reply
            0
            • T ThatsAlok

              kakan wrote:

              It's very informational (Is that an English word? )

              look like to be :)

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV

              K Offline
              K Offline
              kakan
              wrote on last edited by
              #6

              It felt good when I wrote it. But then I began to wonder. Anyway, as long as the reader gets the message, anything goes (as far as I'm concerned) :wtf:

              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