Detecting remote desktop connection

前端 未结 9 1672
北恋
北恋 2020-11-30 19:51

Is there anyway, in a program, to detect if a program is being run from inside a remote desktop session or if the program is being run normal in .NET 2.0? What I\'m trying t

9条回答
  •  醉话见心
    2020-11-30 20:28

    allegedly,

    System.Windows.Forms.SystemInformation.TerminalServerSession
    

    will be true for a remote desktop session (or VNC session)

    but i'd test it to be sure ;-)

提交回复
热议问题