Andreas,
Can the first part of sys(0) be of any help ?
Gregory
_
>Hello,
>
>I want to limit the number of users/program starts in a
>Terminal Server Environment.
>
>How can I read the Clientname (Computer name) and the
>Session ID?
>
>I know it is in the environmemt (GETENV). But this can be
>easily manipulated by our customers (just setting different
>values before program start).
>
>I already tried the registry (Volatile Environment), but these
>values will be overwriiten if the same user name logs in twice.
>
>Any suggestions?
>
>Thanks in advance.
>
>Andreas
Gregory