Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Client, Session in Terminal Server Environmen
Message
 
À
19/05/2003 10:19:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00789972
Message ID:
00790319
Vues:
33
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
Fil
Voir

Click here to load this message in the networking platform