How to use terminal services programmatically

跟風遠走 提交于 2019-12-09 23:50:43

问题


I want to access remote server using my program (C# .NET) and execute there a program in the context of connected user, just like using Remote Desktop.

I don't want just run a program using some user account(like RunAs), but to have a separate execution session like Remote Desktop

I guess terminal services should be used somehow, but I don't know exactly. Any help would be appreciated.


回答1:


You should check out this open source project: http://www.codeplex.com/Terminals
It uses Terminal Services ActiveX Client (mstscax.dll) to do a lots of interesting things.

Just download the project and check out the source, Im sure it will give you all information you need to do what you want.



来源:https://stackoverflow.com/questions/288796/how-to-use-terminal-services-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!