Home > Back-end >  Caught at screen service for white
Caught at screen service for white

Time:10-24

Write the EXE file, screen, send flow, no problem at all, but after written service, fetching in place to hang, the InterActive attribute set to True after also not line, how to solve?

CodePudding user response:

Like you have the concept of a desktop interactive services

CodePudding user response:

Service and common application running in a different desktop

CodePudding 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 results

CodePudding 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/1904373
Had 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.
  • Related