Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NT user login
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00299771
Message ID:
00299784
Vues:
16
>Im sure this must have been posted before but I couldn't find it.
>
>Would someone tell me the api that can be used to get the
>whoami type of info under NT and windows.
>

You can use WNetGetUser() to find out the currently logged-in user; the Windows Scripting Host has the Wscript.Network object which exposes considerably more information, the MS ADSI components may be of use, and the new WMI, all provide ways of getting the details.
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