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
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