I have a piece of software that uses the GetUserName API function to get the user name of the logged in user and then does a case-sensitive match against a field in a database. When our customer had their NT 4.0 domain this worked fine with both NT and 2000 clients. The function returned the user name as stored in User Manager, rather than what they typed (as the NT login is NOT case-sensitive).
Since moving to a Windows 2000 domain, the GetUserName function appears to return exactly what they typed, rather than what is entered in User Manager, and the lookup against our database is now failing.
Is this by design, and is there a workaround for it (other than making my software force the name returned to upper or lower case!)
Thanks for any help you can offer,