c++ - Is it possible to sign in and load a user's desktop programmatically from a windows 7 service on the local machine? -


the problem: using windows 7 machine display information on monitor. machine hard reach , has no keyboard or mouse attached. after user logs onto machine using remote desktop, logs off, becomes stuck @ "press ctrl+alt+delete" screen , have plug keyboard , mouse sign in user account responsible displaying correct information on monitor.

i developing windows service in c++ looks @ current sessions see when user logs in , out of remote desktop. want have service sign correct user , display user's desktop after user logs out.

right stuck trying find way have service sign user account , display desktop on monitor. there anyway this?

no. can impersonate user, load user's registry hive, , launch processes user's account, in vista , later disallow interactive services, can't interacts user desktop. can ipc (inter-process communication) between service process , running user process, via tcp, named pipes, , other means, if user logged in desktop. can't start user desktop session.

more info: https://stackoverflow.com/search?q=%22windows+7%22+interactive+service

as how around not having keyboard issue ctrl-alt-delete (even though that's not question asked), may able use on-screen keyboard, depending on uac settings.

by way, isn't c++-specific question @ all; can use entire windows api regular old c.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -