Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NT user login
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00299771
Message ID:
00299784
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform