Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only one login.... instead of two
Message
De
25/10/1999 18:43:39
 
 
À
25/10/1999 14:03:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00281106
Message ID:
00281284
Vues:
13
>I am currently on NT. I would like to retrieve the network login Id, rather than asking for the user to login an additional time in a new login to get access to the system. What I have to use or make?

There are several ways to do this - you can use the Win32 API call GetUserName() to retrieve the user name, or get the same information through an ActiveX control (for example, the Windows Scripting Host's Wscript.Network object.) And the second part of the return from SYS(0) after the "#" gives the userid used to login to the system.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform