计算机名的远程机器使用远程桌面 [英] MachineName for remote machine using Remote Desktop

查看:219
本文介绍了计算机名的远程机器使用远程桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写C#程序哪里会看到,如果有人通过远程桌面运行程序有用,如果是这样,计算机名称,其中远程桌面运行。

I'm writing a C# program where it would be useful to see if someone is running the program via remote desktop and if so, the machine name where the remote desktop is running.

我可以得到前者使用 SystemInformation.TerminalServerSession

但是,有没有什么办法让远程计算机的名称?

But is there any way to get the name of the remote machine?

推荐答案

我觉得远程桌面服务API会做你想要什么? http://msdn.microsoft.com/en-美国/库/ aa383468(V = VS.85)的.aspx

I think the Remote Desktop Services API will do what you want... http://msdn.microsoft.com/en-us/library/aa383468(v=VS.85).aspx

和下面的例子可以帮助过 - <一个href="http://community.citrix.com/display/xa/How+to+get+client+IP+address+and+client+hostname+using+Terminal+Services+API" rel="nofollow">http://community.citrix.com/display/xa/How+to+get+client+IP+address+and+client+hostname+using+Terminal+Services+API

And the following example may help too - http://community.citrix.com/display/xa/How+to+get+client+IP+address+and+client+hostname+using+Terminal+Services+API

这篇关于计算机名的远程机器使用远程桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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