Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using IPC between a windows service and win32 application C++

Tags:

c++

windows

I have written a windows service and I want to communicate(IPC) it with a win32 application(Desktop), can anyone tell me what should I exactly do for making this communication. In my case my Service is server and other process is client. Process should establish connection with the service whenever a user launches it on his machine.

like image 307
Precociouss Symphonii Avatar asked Sep 11 '25 12:09

Precociouss Symphonii


1 Answers

I have written services which support named pipes like you describe. I do not have to do anything special to set permissions for the client to open & read/write the named pipe. I found the following Microsoft articles useful when developing my code:

"The Complete Service Sample": http://msdn2.microsoft.com/en-us/library/bb540476(VS.85).aspx "Named Pipe Server Using Completion Routines" : http://msdn.microsoft.com/en-us/library/aa365601(VS.85).aspx

like image 106
pnswdv Avatar answered Sep 14 '25 03:09

pnswdv