在VB.NET中检测远程访问 [英] Detect remote access in VB.NET

查看:89
本文介绍了在VB.NET中检测远程访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在vb.net中创建了windows表单应用程序。我想检测,用户是远程访问应用程序或本地访问。



有很多远程/第三方应用程序,如teamviewer,citrix,webex,远程桌面连接,ammy admin等



所以,我必须识别用户(本地/远程)。



请帮忙。



谢谢,



Saurav Sinha



我尝试过:



Hi,

I have created windows form application in vb.net. I want to detect, user is remotely access application or locally access.

There are a lot of remote/third party application like teamviewer, citrix, webex, remote desktop connection, ammy admin etc.

So, I have to identify the user(local/remote).

please help.

Thanks,

Saurav Sinha

What I have tried:

Dim blnUser As Boolean = SystemInformation.TerminalServerSession

        If blnUser = True Then
            MsgBox("user is remotely accessed")
        Else
            MsgBox("user is locally accessed")
        End If

推荐答案

并非所有软件都使用相同的技术来创建连接。所以没有一个单独的解决方案......

RDP和Citrix构建在Windows网络上,因此将设置TerminalServerSession ...

TeamView的工作原理与此不同你必须去产品网站寻找开发资源......在TeamView的情况下,有一个可能有帮助的TerminalServerSession ......

对于你想要支持的所有其他连接软件,你必须查找一些类似的API ......
Not all software use the same technique to create connection... So there is no single solution for all...
RDP and Citrix built on the Windows networking so TerminalServerSession will be set...
TeamView works differently and for that you have to go to the product web site and look for development resources... In the case of TeamView there is an TerminalServerSession that may help...
For all the other connection software you want to support, you have to look up some similar API...


这篇关于在VB.NET中检测远程访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆