Re: Win32Lib getUserName() problem
- Posted by AndyDrummond Dec 24, 2009
- 1106 views
This summary not clears up the confusion from your previous posts, but it is also consistent with my understanding of XP's usernames, gleaned from http://support.microsoft.com/kb/283111 . What threw me off was that you said the name of the folder in Documents and Settings was Andrew but the USERNAME environment variable was set to Andy Drummond.
Oh, I did say that, didn't I? Sorry - I must read my own posts more carefully. I apologise unreservedly.
The M$ knowledge base article, which I'd not seen before, says the same things as I'm trying to say - but doesn't tell me how to find the Logon Name or Full Name or display name, as they call it. Must be held someplace, but they don't say where.
I have got around the problem anyway now, so this really is time to putt his to sleep. Thanks for your interest.