General information
Category:
Windows API functions
Gregory,
SYS(0) returns the server computer name. In a Terminal Server
environment I need the Client's computer name
(e.g. GETENV("CLIENTNAME") and GETENV("SESSIONNAME").
Unfortunately environment variables are not save and
could be set before program start by customers.
Andreas
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only