B
Bill
Hello,
I'm successfully on my way to finishing up a C# Windows Service now, but now I'm wondering how I can communicate with this service. Services examples seem to be everywhere on the internet now, but what is the best practice for communicating with them?
1) It seems like a control panel is best for setting options, but I cannot find any examples on how to make a control panel item in .NET. Can someone provide a link to an article on how to do this, or give the basic steps.
2) How can the control panel or even a WinForm C# app send messages to the service? Before I was using a service, I was sending messages between apps using RegisterWindowMessage and PostMessage. Everything I've been reading seems to indicate that user defined windows messaging (or any message for that matter) won't work with a service because it doesn't have a window to hear them. Regardless of whether I can create a control panel app or not, I need to figure out how to message between the Control Panel or Helper App and the service (like antivirus programs, backup programs, video card settings, etc. which are service based but have access through an app in the icon tray). Any suggestions, samples, or examples?
Thanks,
-Bill
I'm successfully on my way to finishing up a C# Windows Service now, but now I'm wondering how I can communicate with this service. Services examples seem to be everywhere on the internet now, but what is the best practice for communicating with them?
1) It seems like a control panel is best for setting options, but I cannot find any examples on how to make a control panel item in .NET. Can someone provide a link to an article on how to do this, or give the basic steps.
2) How can the control panel or even a WinForm C# app send messages to the service? Before I was using a service, I was sending messages between apps using RegisterWindowMessage and PostMessage. Everything I've been reading seems to indicate that user defined windows messaging (or any message for that matter) won't work with a service because it doesn't have a window to hear them. Regardless of whether I can create a control panel app or not, I need to figure out how to message between the Control Panel or Helper App and the service (like antivirus programs, backup programs, video card settings, etc. which are service based but have access through an app in the icon tray). Any suggestions, samples, or examples?
Thanks,
-Bill