基于TeamViewer的远程协助软件

客户要求一个远程协助软件. 用于局域网内部使用.

几经比对筛选, 还是基于TeamViewer的封装实现

方案是通过句柄获取Teamviewer内控件. 然后修改内部参数或是模拟鼠标点击

后面发现Teamviewer可以带参数. 

 

-i <ID> 
(Mandatory) ID of the remote computer 

–Password <password>  -P <password> 
(Optional) password of the remote computer – you will be prompted for the password if this is not used 

-m fileTransfer  -m vpn 
(Optional) connection mode – this defaults to Remote Control if not used 

详细参考: https://community.teamviewer.com/t5/Knowledge-Base/Command-line-parameters/ta-p/34447

 

然后将Teamviewer的远程界面嵌入到自己的form中

 IntPtr maindHwnd = FindWindow(“TV_CClientWindowClass”, null); //获得句柄   
                if (maindHwnd != IntPtr.Zero)
                {
                      SetParent(maindHwnd, this.Handle);
                    ShowWindow(maindHwnd, 1);

              }

 

 

 

来源:厦门卜数信息科技有限公司

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2018年11月16日
下一篇 2018年11月16日

相关推荐