Information générale
Catégorie:
Fonctions Windows API
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement