Get network username

D

Doug Barnes

Is there any way of getting the logged on network username
of the current user without lots of code.
I know that it's held in XP in HKEY_CURRENT_USER\Volatile
Environment\NWUSERNAME and with a bit of fiddling I can
pull from a different location in WIN98 & WIN2K, but is
there a simple method where I don't need to find out which
OS I'm using before looking in the registry
there's %userbname% in the environment in XP, but not in
WIN98, ideally a networkuser() would be great, but
wishfull thinking
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top