[quoted text, click to view] On Mon, 19 Nov 2007 17:41:47 +0100, "GAZ" <gaz@gaz.com> wrote:
>"GAZ" <gaz@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
>
Not at all silly if you didn't know that property existed.
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.