Click here to Skip to main content
15,921,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create a windows service and it run background perfectly. but i want to intract with another desktop application.i know this is bad habbit becoz windows service is made for only run in background but i need to work with desktop.i searched for this but not solve my problem.
note - i trying in exe file of windows service not debug mode.

please help me...


thanks in advance....
Posted
Updated 24-Aug-15 22:18pm
v2
Comments
Mayank Vashishtha 25-Aug-15 4:11am    
Do you want to debug the application or is it IPC?
Andy Lanng 25-Aug-15 4:31am    
You want it to interact with Desktop apps how?
If you want to pass messages then you can use a mutually distinct service like "Windows Message Queue". if you want to monitor the progress or state that can be a little more fiddly. Please let us know how the app and service should interact and I or another can help you find the best solution.
Thanks ^_^

PS: Use the "Improve Question" button above these comments to add the explanation to your question
Mayank Vashishtha 25-Aug-15 4:37am    
What do you want to do with that? Please provide more information.

1 solution

If your service needs to interact with desktop apps then your architecture is flawed. If your service requires to support or provide interaction then it does this by exposing some kind of interface. It could host a WCF service, or it could listen for commands on a TCP/IP port, and the client apps then communicate with service that way. That is how every other Windows Service works and it is how yours should work too. You might need to explain a bit more about what it is you're trying to achieve.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900