TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ahmar Husain
NA
1.4k
768.1k
screen Shot with windows service
Mar 27 2013 2:48 AM
I have written a window service (local system) which is intended to capture screen shot of user's desktop after every 10 minutes and save it into a local folder of D drive , i tested my service on windows XP it worked fine but on windows vista and windows 7 it is not working when installing the service i enabled "Interact with user's desktop" after doing some more research on it i got to know to know in earlier versions of Microsoft windows all services were started into the same session in which user has logged in but in Vista and later services are started in Session 0 while user logs in Session >0 which is
Session 0 isolation
so when my service tries to take screenshot it actually takes of Session 0 desktop which is blank Microsoft has done it to prevent shatter attack ,this is quite bizarre rather than making service secure microsoft has pulled out one functionality but i still want to do it without using any registry hack i tried an alternate solution too in which i wrote screen capture code in a console application and called it via service periodically but results were same , any help will be greatly appreciated .
those who want to have a look on my code can contact me at
[email protected]
.
Reply
Answers (
2
)
Windows Service
move file from one folder to other