Using KB180548 in a native c++ application, the user can log in in this application with his Windows credentials.
However, a strange bug appears: if the user is renamed, the old(original) name still work with this authentication method, but the new name does not!
What is the problem? Why does Windows not acknowledge the name change in all instances?
On a side note, a long time ago, when interfacing with another software, which also used Windows accounts for log in, I found something similar in their software:
first, they had a limitation in that a username containing spaces did not work. To remedy that, I renamed the user. But this renamed user still did not work. Creating a new user with the same name worked…
Solved it. The Control Panel based user renaming is a farce. To really change the username, as opposed as just the full name, type netplwiz in a command prompt.