Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

I am using windows 7 and visual studio 2010 to create a monitoring software. I have to create windows services , which take the screen shot of the desktop on the client and save it to the local system. The windows service is working fine in Windows XP but i does not work in windows 7. It takes blank screenshots with Please provide me some help on this

Thanks

Regards
Sardar Khan
Posted
Comments
Mehdi Gholam 18-Nov-11 2:51am    
A windows service by definition has no UI and therefore cannot take screen shots.
Sergey Alexandrovich Kryukov 18-Nov-11 2:55am    
In principle, it can communicate with another application in the same system which can. I don't know if such application can automatically started by the Windows Service on Windows 7, maybe not. How do you think?
--SA
BillWoodruff 18-Nov-11 8:25am    
Hi Mehdi, I can imagine a Service with no UI, that, based on a timer firing, takes a screen shot and saves it to disk.
espariz 23-Jul-23 10:46am    
Hello,
I'm trying use something similar on Windows XP.
Can you share the code with us?

1 solution

Since you are working with Windows 7 you should be aware of "Session 0 Isolation", which will prevent your Windows Service from easily working with an interactive session.
 
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