-1

How, using Delphi, can communication be established between the service and an executable file? According to my research this is possible by pipe or Windows message.

I need the service to run an executable file. But the problem is that when the executable is run is does not show on Windows 7 because services on Windows 7 runs at another desktop.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
AliReza
  • 51
  • 10
  • 2
    Read this: http://blogs.msdn.com/b/winsdk/archive/2009/07/14/launching-an-interactive-process-from-windows-service-in-windows-vista-and-later.aspx – David Heffernan Nov 23 '11 at 22:33
  • And as for part 1, pipes are fine, once you secure them right, but messages are no good because messages don't cross sessions (I think). – David Heffernan Nov 23 '11 at 23:01
  • 1
    Possible duplicate [delphi-2009-how-to-communicate-between-windows-service-desktop-application-un](http://stackoverflow.com/questions/1260181/delphi-2009-how-to-communicate-between-windows-service-desktop-application-un) – LU RD Nov 23 '11 at 23:38

1 Answers1

0

Check Cromis IPC by Iztok Kacin. It's based on named pipes and is very lightweight, most importantly, it's very easy to use and versatile. I doubt is there any IPC library for Delphi better than Cromis IPC.

Edwin Yip
  • 4,089
  • 4
  • 40
  • 86