Reputation: 1
My Question Is How can I make Mouse and Keyboard operations by using win32.dll or other dlls from a service running in LocalSystem? In this way, the IT employee can type the username and password during the remote connection?
Upvotes: 0
Views: 225
Reputation: 899
A windows service cannot access to the graphical desktop. so you cannot move the mouse neither send keyboard keys from windows service. You do not need to access win32.dll with specific code as there exist already classes in C# to do this things. I might however decouple the functionalities with a standard process to access to the desktop and eventually communicates with windows service inter process technique . I miss however why you need it as a service if your use case is a co worker who could just directly launch your desktop specific app without needing to worry about win service. I also miss why you could not use remote acces from MsTeams
Upvotes: 1