Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
I have windows service that show notify icon in period of time
it works when I start it in windows xp or windows server 2003
but when I start it in windows 7 ,,, it works but doesn't show the notify icon
how can I solve it?
is there any solution to create service with interact with desktop in windows 7 or 2008 R2?
Posted
Updated 7-Sep-14 1:14am
v3
Comments
[no name] 6-Sep-14 8:56am    
The security for the service is preventing it from accessing the desktop.
Mahnoosh_M 7-Sep-14 2:13am    
how can I solve it?
Mahnoosh_M 7-Sep-14 2:29am    
how can I change the security of service ?

Please review this link: http://msdn.microsoft.com/en-us/library/windows/desktop/ms683502(v=vs.85).aspx[^] for all options you have for interacting with the desktop from a windows service in windows 7 or windows server 2008.
 
Share this answer
 
Instead of asking how to enable the interaction of the service with the desktop, ask the proper question: how to write an application which runs in the context of the user (and also: how to start it when the user logs on) and which interacts with a Windows service.
The communication between the application and the service looks like a "common" client-server-communication, i.e. you can use e.g. WCF, .Net Remoting. Get familiarized with that stuff, and create a proper solution, instead of trying to get a stone-age architecture working in a modern environment.
 
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