Al parecer lo que quieres hacer no se podrá hacer desde un servicio. Podrías tener una aplicación que sea llamada por el servicio, Y esta sea la que realice la captura.
Cita:
Empezado por Visual Studio
Services do not have access to a user's desktop. Services run in an isolated session and each session has its own desktop. So if a service did snapshot the desktop it would be for session 0, not the user's desktop.
I'm going to basically say that you cannot implement this via a service. In reality you could possibly get it to work but doing so would require that you use legacy components that MS will not be supporting going forward. You could also theoretically use the RDS functionality but you're going to have to have something between the service and the user to help identify things such that implementing the screenshot in the service really doesn't make any sense.
|
Fuente