CodePudding user response:
Like you have the concept of a desktop interactive servicesCodePudding user response:
Service and common application running in a different desktopCodePudding user response:
Service program should be created in the WinLogon virtual desktop. And we are operating at ordinary times the Default name for the Default desktop virtual desktop.Screenshot of usual programs at this moment, certainly can't work properly..
Solution: can switch the process space to Defalut desktop first, and then to screen
Auxiliary function:
OpenDesktop
SetThreaddesktop
Key is the second function oh. When you use may also encounter problems, set the fail
To note here, the use of SetThreaddesktop should be put in a pure static thread can oh. That is OK..
CodePudding user response:
Thank you for your advice, I try the OpenDesktop SetThreaddesktop two functions, a reply to point after the resultsCodePudding user response:
How to make SetThreaddesktop in a pure thread? Consult!CodePudding user response:
Don't use service program screen,CodePudding user response:
http://blog.csdn.net/lee576/article/details/1904373Had better look again, basically see the back of the content
CodePudding user response:
The building Lord if on XP problem can be solved, switch threads Token (Token) cut to ordinary users that can be solved in the table.Windows Vista and Windows 7 more strict requirements on the service. Before XP can solution I tried a also useless.
Now I do service is the common treatment scheme for the start of a normal user permissions (pioneer normal user token) and give the process of the process, then the process screenshots, way of communication between processes to service.