How to show Last Logon UserName in a logon dialogbox using C++ win32 API?

379 Views Asked by At

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?

1

There are 1 best solutions below

0
rkosegi On BEST ANSWER

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.