Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Usernames

Status
Not open for further replies.

sifitz

Programmer
Feb 27, 2002
47
GB
I want to get the windows user details. I can get the username using the API call GetUserName but I want the real name of the user.

How can I do this?

Also does everybody know about the Windows API forum? It seems virtually unused compared to this forum. I have posted this message here in the hope that I can get a quicker reply.

Thanks,

Si Fitz
 
Si,
What os are you running?...If NT you can get the real name by using Environ("Full") and you don't even need a api call.

jtmc
Scoty ::) "Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
 
On some NT configurations. The environment string is not guaranteed to have been set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top