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. NT Service would not start...!

NT Service would not start...!

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • P Offline
    P Offline
    Prabhakar
    wrote on last edited by
    #1

    I have a Windows Service application with 4-5 dialog boxes in it. I have good reasons to believe that it should have them, but the service would not start unless I remove them. Anybody any ideas ?


    . . . Humans do it better . . .


    P K 3 Replies Last reply
    0
    • P Prabhakar

      I have a Windows Service application with 4-5 dialog boxes in it. I have good reasons to believe that it should have them, but the service would not start unless I remove them. Anybody any ideas ?


      . . . Humans do it better . . .


      P Offline
      P Offline
      palbano
      wrote on last edited by
      #2

      If your running under the 'system' account you need to have "Allow service to interact with desktop" checked. This is in the Server Properties dialog that you must get to from the 'Services' control panel. "No matter where you go, there your are..." - Buckaoo Banzi <pete/>

      P 1 Reply Last reply
      0
      • P palbano

        If your running under the 'system' account you need to have "Allow service to interact with desktop" checked. This is in the Server Properties dialog that you must get to from the 'Services' control panel. "No matter where you go, there your are..." - Buckaoo Banzi <pete/>

        P Offline
        P Offline
        Prabhakar
        wrote on last edited by
        #3

        Yes that is check'd but is there any restrictions on the size of the UI resources that can be put in a Service (that is causing me problems) ? or Is there any limit on the size of the service exe image loaded ? Tnx palbano


        . . . Humans do it better . . .


        1 Reply Last reply
        0
        • P Prabhakar

          I have a Windows Service application with 4-5 dialog boxes in it. I have good reasons to believe that it should have them, but the service would not start unless I remove them. Anybody any ideas ?


          . . . Humans do it better . . .


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

          Prabhakar wrote: I have a Windows Service application with 4-5 dialog boxes in it. I have good reasons to believe that it should have them, but the service would not start unless I remove them. Thumb rule: Services should not have windows or consoles that provide feedback to the user. If the service must have a user interface, it must run under the LocalSystem account. Any information from EventLog when you have those dialog boxes? Follow live World Cup Cricket scores here[^]

          1 Reply Last reply
          0
          • P Prabhakar

            I have a Windows Service application with 4-5 dialog boxes in it. I have good reasons to believe that it should have them, but the service would not start unless I remove them. Anybody any ideas ?


            . . . Humans do it better . . .


            K Offline
            K Offline
            Kant
            wrote on last edited by
            #5

            Read this: MSDN[^] lpDesktop Windows NT/2000/XP: Pointer to a null-terminated string that specifies either the name of the desktop, or the name of both the desktop and window station for this process. A backslash in the string indicates that the string includes both the desktop and window station names. For CreateProcess and CreateProcessAsUser, if this member is NULL, the new process inherits the desktop and window station of its parent process. If this member is an empty string, the process does not inherit the desktop and window station of its parent process; instead, the system determines if a new desktop and window station need to be created. If the impersonated user already has a desktop, the system uses the existing desktop. For CreateProcessWithLogonW, if this member is NULL or an empty string, the new process inherits the desktop and window station of its parent process. CreateProcessWithLogonW adds permission for the specified user account to the inherited window station and desktop. Otherwise, if this member specifies a desktop, it is the responsibility of the application to add permission for the specified user account to the specified window station and desktop. Follow live World Cup Cricket scores here[^]

            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