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. sending message from service

sending message from service

Scheduled Pinned Locked Moved C / C++ / MFC
design
4 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.
  • _ Offline
    _ Offline
    _T No name
    wrote on last edited by
    #1

    hi, i am working with window service. and i am able to show my application UI from service by using CreateProcessAsUser() but is it possible to send message from service to my application. thanks

    CPalliniC R 2 Replies Last reply
    0
    • _ _T No name

      hi, i am working with window service. and i am able to show my application UI from service by using CreateProcessAsUser() but is it possible to send message from service to my application. thanks

      CPalliniC Online
      CPalliniC Online
      CPallini
      wrote on last edited by
      #2

      _T("No name") wrote:

      but is it possible to send message from service to my application

      Why not? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • _ _T No name

        hi, i am working with window service. and i am able to show my application UI from service by using CreateProcessAsUser() but is it possible to send message from service to my application. thanks

        R Offline
        R Offline
        Rolf Kristensen
        wrote on last edited by
        #3

        Remember that on Vista/Win7 then services are running in their own session. When starting the UI application then it must be running in the user-session. Have feeling that it is better that it is user that starts the UI application (Maybe as a process started at user-login). The UI can then contact the service through whatever communication form you like. Namedpipes might be a good way.

        _ 1 Reply Last reply
        0
        • R Rolf Kristensen

          Remember that on Vista/Win7 then services are running in their own session. When starting the UI application then it must be running in the user-session. Have feeling that it is better that it is user that starts the UI application (Maybe as a process started at user-login). The UI can then contact the service through whatever communication form you like. Namedpipes might be a good way.

          _ Offline
          _ Offline
          _T No name
          wrote on last edited by
          #4

          thanks i will read about pipes then.

          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