Communication (IPC?) with system service lazarus / 34-Windows ---------------------------------------------------------------------- Eclipticon · 2011-11-02 18:55 Hi, I am currently trying to set up a communications channel between a system service (Windows XP) and a GUI. My first try was TSimpleIPC, with the server in the service (Global := True) and the client in the GUI. This seems not to work, the client always reports that the server would not be running ... looking at the source, this was not a surprise, as TSimpleIPCServer obviously creates some kind of hidden window to receive messages. On the other hand, TSimpleIPCServer instantiates successfully, indicating that this window *can*  be created ... Can anyone confirm if there is a chance of getting SimpleIPC to work in this configuration? If not, what means of communication would you suggest under these circumstances? Thanks :-) ---------------------------------------------------------------------- Eclipticon · 2011-11-02 19:52 Maybe I should add that the messages I would like to send are short strings. ---------------------------------------------------------------------- cdbc · 2011-11-03 04:45 Hi A lot of services communicate via sockets. Setting the service up as a server and the gui as client. Maybe "LNet" or "Synapse" could do the job nicely :-) Hth - regards Benny ---------------------------------------------------------------------- Ocye · 2011-11-03 12:09 As far as I remember its very easy to use mailslots. There should some examples available at least for Delphi. ---------------------------------------------------------------------- Leledumbo · 2011-11-04 06:44 Hmm... can you find anything useful in the documentation? ---------------------------------------------------------------------- Eclipticon · 2011-11-05 13:28 Thanks for the tips with mailslots and sockets ... both look reasonable to approach my problem. It would be nice to know though if SimpleIPC can be used for services or not ... if not, this should be added to the documentation so save others from wasting time as I did ;-)