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. Database & SysAdmin
  3. System Admin
  4. Windows Service - GUI application

Windows Service - GUI application

Scheduled Pinned Locked Moved System Admin
csharpquestion
3 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.
  • K Offline
    K Offline
    kenokabe
    wrote on last edited by
    #1

    Hi, I try to develop C# service application. One of the component used interacts to a GUI windows application. It's a small application but still has GUI. Clearly, to run my C# application as a service, unless this external exe can run also in service mode, it does not work. Is it impossible to install a GUI windows application to windows service? or is there a way to wrap it as a service component? Thanks for your advice. Best, Ken

    I 2 Replies Last reply
    0
    • K kenokabe

      Hi, I try to develop C# service application. One of the component used interacts to a GUI windows application. It's a small application but still has GUI. Clearly, to run my C# application as a service, unless this external exe can run also in service mode, it does not work. Is it impossible to install a GUI windows application to windows service? or is there a way to wrap it as a service component? Thanks for your advice. Best, Ken

      I Offline
      I Offline
      ian mariano
      wrote on last edited by
      #2

      In the C world, this is a good reference: Interacting with the User in a Service. For .NET (in Introduction to Windows Service Applications) MSDN says, "The Windows Service classes supported by the .NET Framework do not support interaction with interactive stations, that is, the logged-on user. The .NET Framework also does not include classes that represent stations and desktops. If your Windows Service must interact with other stations, you will need to access the unmanaged Windows API." So the above link (for the C) world should get you started.

      Ian Mariano - http://www.ian-space.com/
      "We are all wave equations in the information matrix of the universe" - me

      1 Reply Last reply
      0
      • K kenokabe

        Hi, I try to develop C# service application. One of the component used interacts to a GUI windows application. It's a small application but still has GUI. Clearly, to run my C# application as a service, unless this external exe can run also in service mode, it does not work. Is it impossible to install a GUI windows application to windows service? or is there a way to wrap it as a service component? Thanks for your advice. Best, Ken

        I Offline
        I Offline
        ian mariano
        wrote on last edited by
        #3

        You could also write your external GUI EXE to take advantage of remoting to access the service (via remoting services exposed by the service.) See Accessing Objects in Other Application Domains Using .NET Remoting.

        Ian Mariano - http://www.ian-space.com/
        "We are all wave equations in the information matrix of the universe" - me

        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