I need IPC between a windows service and a GUI application both written in Delphi 2010. I decided to use named pipe for this. I built and installed successfully Russell Libby's TPipeServer and TPipeClient components (link). I followed other answers like this. But my service received only empty messages from the client. After many test I concluded that I was using those components erroneously, so i don't want to post any code here. So I'm looking for a valid example about how these components work in order to write/read strings in a named pipe (from client to server and viceversa). Any help is really appreciated, even using other free named pipes components or source codes. Thank you.
Edit: I need a valid way to pass security check in windows server 2008 / windows vista / windows 7
The Cromis-IPC component by Iztok Kacin is a versatile IPC communication Delphi component utilizing windows named pipes
. On the given link is a client/server example, and in the source code of the component is a full example.
The Cromis IPC can be used for process communication within the same computer as well as communication between computers on a network. Permissions are easy to handle when doing communication within the same computer. For a detailed description how to handle permissions, see windows doc Named Pipe Security and Access Rights.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With