PDA

View Full Version : a issue about MSGina.dll


Leon Huang
December 14th 03, 08:08 AM
Hello,

I am working on to writing my owner GINA.dll to replace
MSgina.dll, my purpose is to logon automatically

with a default user and password after Windows XP booting, In fact, I found
to implement it, only if modifying registry as the following.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Value Description

AutoAdminLogon "1" or any other string value.

DefaultUserName The name of the user to automatically
log on.

DefaultDomainName The name of the domain that the user
account is in.

DefaultPassword The password of the user account, in
clear text.

If the AutoAdminLogon key value is present and contains a 1, an automatic
logon will occur based on the DefaultPassword key value. The account being
logged onto is specified using the DefaultUserName and DefaultDomainName key
values.

In normal Windows XP booting case, this method can implement to logon
automatically.

However, If last shut down Windows XP by hibernating, next resume Windows XP
from hibernating, the above method is invalid. That is, when logon windows
XP, I must input password.

Can you tell me what the reason is in hibernating case?



If I want to modify the WlxLoggedOnSAS() function which is
exported by MSGina.dll to implement to logon automatically

with a default user and password after Windows XP booting. How can I do it?





Thanks

Best regards.

Leon Huang

Roger Abell [MVP]
December 14th 03, 08:09 AM
Resuming from hibernation is not booting.
Resuming is returning machine to exactly the
same state as it was in at time of hibernation,
with possible exceptions like requiring password
entry to access the syspended desktop session
as set in the power management options.
If an account was logged in at hibernation, and options
are to not require password entry, you should be at
the desktop on resume.
If no account was logged in, then on resume you
should be back with no account logged in (this is
not a boot - do not expect it to act like one and
obey the auto login setting).

"Leon Huang" > wrote in message
...
> Hello,
>
> I am working on to writing my owner GINA.dll to replace
> MSgina.dll, my purpose is to logon automatically
>
> with a default user and password after Windows XP booting, In fact, I
found
> to implement it, only if modifying registry as the following.
>
> HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
>
> Value Description
>
> AutoAdminLogon "1" or any other string value.
>
> DefaultUserName The name of the user to
automatically
> log on.
>
> DefaultDomainName The name of the domain that the user
> account is in.
>
> DefaultPassword The password of the user account,
in
> clear text.
>
> If the AutoAdminLogon key value is present and contains a 1, an automatic
> logon will occur based on the DefaultPassword key value. The account being
> logged onto is specified using the DefaultUserName and DefaultDomainName
key
> values.
>
> In normal Windows XP booting case, this method can implement to logon
> automatically.
>
> However, If last shut down Windows XP by hibernating, next resume Windows
XP
> from hibernating, the above method is invalid. That is, when logon windows
> XP, I must input password.
>
> Can you tell me what the reason is in hibernating case?
>
>
>
> If I want to modify the WlxLoggedOnSAS() function which is
> exported by MSGina.dll to implement to logon automatically
>
> with a default user and password after Windows XP booting. How can I do
it?
>
>
>
>
>
> Thanks
>
> Best regards.
>
> Leon Huang
>
>
>
>
>
>

Google