来自C#的RDP

编程入门 行业动态 更新时间:2024-10-13 20:18:01
本文介绍了来自C#的RDP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嘿, 我想从c#连接到指定服务器/用户名的远程桌面连接. 我发现: www.databaseforum.info/2/22/0a0e1d2da27798df.html 解决方案应引用AxMSTSCLib dll. 我不想从任何地方下载此dll,因为我不确定我是否可以信任它. 但是它也说: 经过网上研究后,我发现必须创建新的AxMSTSCLib 和MSTSCLib DLL.所以我做了" 如何创建"此新AxMSTSCLib? 其他链接不使用此dll,而是运行脚本. bytes/topic/c-sharp/answers/517024-远程桌面连接c 但是该代码会引发安全性异常".所以我不能使用它. 感谢您的帮助.

Hey, I want to connect to a remote desktop connection to a specified server/username from c#. I have found: www.databaseforum.info/2/22/0a0e1d2da27798df.html a AxMSTSCLib dll should be referenced to the solution. I don''t want to download this dll from anywhere as I''m not sure if I can trust it. However it also says: "After research on the web I found that I have to create new AxMSTSCLib and MSTSCLib DLLs. So I did" How do I "create" this new AxMSTSCLib ? Other link, doesn''t use this dll but run an script instead. bytes/topic/c-sharp/answers/517024-remote-desktop-connection-c but that code throws Security Exception. So I cannot use it. Thanks for any help

推荐答案

在项目中向添加引用"对话框的"COM"选项卡上的Microsoft终端服务客户端添加引用. 这将为您提供对MSTSCLib的引用,并从那里可以创建客户端等.这应该是最简单的方法. 在寻找答案的过程中,我在将Remotes Desktop Client嵌入其中的以下内容中找到了以下内容:网页 [ ^ ] 这将带您获得大量有用的信息. Add a reference in your project to the Microsoft Terminal Services Client on the COM tab of the Add Reference dialog. This will give you a reference to MSTSCLib and from there you can create a client, etc. This should be the easiest way to do it. On my way to finding out about this I found the following on Embedding the Remotes Desktop Client In a web page [^] This takes you to a lot of good information.

更多推荐

来自C#的RDP

本文发布于:2023-11-07 23:36:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567739.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:RDP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!