Hi people,
For a small project I need the possibility to "trigger" a function in a Window-form-application from a Service.
So there are 2 program's. One is the visible Form application with textboxes and buttons and so on...
The other is a sort of service program that runs on the Windows Service account.
Actually the second program is a command-line tool that gets fired by a PHP script from the Apache server.
Because the command-line tool runs in another "environment" then the Windows-form-App, it is NOT possible to communicate (trigger) with both apps.
I know I have to use IPC (InterProcess Communication) and I have download the dozens of sample apps, but I still can't get it to work.
PLEASE can someone give me some sample code, or perhaps sample program(s) to help me out?
I think it's really easy to build what I want, but for me it's a no-go :-(
So for example it has to work like this:
PHP script (running at Apache server) runs a "console/service" app (already working) which "triggers" (via IPC) a already running Windows-Form-app (also already working app) that for example shows a MsgBox with the text in it that is sended by the "console/service" app.
Maybe someone can help me out with this?!
Thanks in advance,
Atmoz
For a small project I need the possibility to "trigger" a function in a Window-form-application from a Service.
So there are 2 program's. One is the visible Form application with textboxes and buttons and so on...
The other is a sort of service program that runs on the Windows Service account.
Actually the second program is a command-line tool that gets fired by a PHP script from the Apache server.
Because the command-line tool runs in another "environment" then the Windows-form-App, it is NOT possible to communicate (trigger) with both apps.
I know I have to use IPC (InterProcess Communication) and I have download the dozens of sample apps, but I still can't get it to work.
PLEASE can someone give me some sample code, or perhaps sample program(s) to help me out?
I think it's really easy to build what I want, but for me it's a no-go :-(
So for example it has to work like this:
PHP script (running at Apache server) runs a "console/service" app (already working) which "triggers" (via IPC) a already running Windows-Form-app (also already working app) that for example shows a MsgBox with the text in it that is sended by the "console/service" app.
Maybe someone can help me out with this?!
Thanks in advance,
Atmoz