If you are using system logon dialogbox (gina) you can use group policy to configure it:
http://support.microsoft.com/kb/324740
Set it to false to prevent username to be hidden.
Question
i am using C++ win32 API.
i have a gina logon dialogbox.
it contains a username textbox.
i want to show the last logon username in that textbox,when the system after restarted.
How can i get it?
Solution
If you are using system logon dialogbox (gina) you can use group policy to configure it:
http://support.microsoft.com/kb/324740
Set it to false to prevent username to be hidden.