|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VS 2005 and Terminal Services DetectionIs it possible to detect whether an application is started on a regular
computer (xp, vista, etc.) or through terminal services? Basically, we would like to prevent users from starting our application through terminal services. Thanks for any answers and/or ideas. BR, GAZ Silly question really.
System.Windows.Forms.SystemInformation.TerminalServerSession GAZ Show quote "GAZ" <g**@gaz.com> wrote in message news:22D3B27A-5A8D-4E40-843F-6AC8DFE1B7F0@microsoft.com... > Is it possible to detect whether an application is started on a regular > computer (xp, vista, etc.) or through terminal services? > > Basically, we would like to prevent users from starting our application > through terminal services. > > Thanks for any answers and/or ideas. > > BR, > > GAZ
Show quote
On Mon, 19 Nov 2007 17:41:47 +0100, "GAZ" <g**@gaz.com> wrote: Not at all silly if you didn't know that property existed.>"GAZ" <g**@gaz.com> wrote in message >news:22D3B27A-5A8D-4E40-843F-6AC8DFE1B7F0@microsoft.com... >> Is it possible to detect whether an application is started on a regular >> computer (xp, vista, etc.) or through terminal services? >> >> Basically, we would like to prevent users from starting our application >> through terminal services. >> >> Thanks for any answers and/or ideas. >Silly question really. > >System.Windows.Forms.SystemInformation.TerminalServerSession > I would like to allow terminal server sessions but log the home IP address or computer name for audit trail purposes. I can get the address or computer name for the terminal session server. How do I get the values for the computer being used by the end user? I don't care if it is a trivial or silly question -- it is one I don't know the answer to. |
|||||||||||||||||||||||