由网友(淡漠安然)分享简介:我有一个.NET的WinForms应用程序,它有一些动画效果,淡入和滚动动画等,这些做工精细但是如果我在一个远程桌面协议会话的动画开始篦。I have a .net winforms app which has a few animation effects, fade ins and scroll animatio...
我有一个.NET的WinForms应用程序,它有一些动画效果,淡入和滚动动画等,这些做工精细但是如果我在一个远程桌面协议会话的动画开始篦。
I have a .net winforms app which has a few animation effects, fade ins and scroll animations etc. These work fine however if I'm in a Remote Desktop Protocol session the animations start to grate.
有人建议确定的方式在RDP会话的应用程序是否在运行,所以我可以在这种情况下,关闭的影响了吗?
Can someone suggest a way of determining whether or not an app is running across an RDP session so I can turn the effects off in this case?
推荐答案
假设你至少在.NET Framework 2.0中,有没有必要使用的P / Invoke:只检查系统的价值.Windows.Forms.SystemInformation.TerminalServerSession
(MSDN).
Assuming you're at least on .NET Framework 2.0, there's no need to use P/Invoke: just check the value of System.Windows.Forms.SystemInformation.TerminalServerSession
(MSDN).
相关推荐
最新文章