Link to home
Start Free TrialLog in
Avatar of charie
charie

asked on

How to replace the standard microsoft logon dialog box???

Hi folks ,
I would like to know how can I replace the standard Windows 95 /98 /Nt /2000 logon dialog box by my own application dialogbox. Is it a way by overriding the MsGina.dll? How to do so?

Looking for the valued suggestions.
Exact step by step approach?
Thanks.

regards,
Charie
Avatar of stsanz
stsanz

The GINA specification allows you to replace the original MSGINA logon by your own logon procedure.
See :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/winlogon_and_gina.asp

Also, you can get a replacement GINA sample, from where you can start at :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpginasample.asp
Avatar of charie

ASKER

hi

    Actually, i want to show a different logon dialog but use the same logon-functionality as MSGINA.DLL does? is there a way to do so? If not, what do I have to do to get the same result as the original MSGINA.DLL-function gets. i have to do the research about this topic, that is use my own logon dialog box then use the same function like the standard microsoft logon dialog box do. i have to know the step-by-step way to get it. Then, make a report on how to replace the standard microsoft logon dialog box.
ASKER CERTIFIED SOLUTION
Avatar of stsanz
stsanz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
By the way, be very careful when you test a replacement GINA.
You can make your computer unusable very easily if the GINA fails.

The easiest to do is test it on a remote computer of which you can access registry
from another computer on the network to restore default registry values.

Avatar of charie

ASKER

thanks for ur response stsanz, i really appreciate it.

  i will give it a try first, if u don't mind i have interest to c the registry keys. One question, that is if some one had used the Novell to replace the standard logon dialog box, is that the concept, procedure and the method to replace the Novell is same like the way that i should use to  replace my own logon dialog box?
Avatar of charie

ASKER

hi,
 
    i have to display the dialog box, means that the user can't logon automatically. The user have to key in their password then jz can logon to the windows.

thanks in advance.
Avatar of charie

ASKER

Hello experts,

   i would like to search for the coding for replacement GINA DLL included windows 95/98/NT/2000. Specially replace all the WlxLoggedOutSAS function to get my dialog box. I have no idea with the function and the whole coding.

I have found all the information on the Microsoft website regarding the specification for such a DLL, however i still can't get use to it. So hopefully anyone can provide a sample GINA replacement/ ginastub for me? thanks a lot.

charie.

While I could implement the entire W1xLoggedOutSAS function in GINA,
and in the following code fragment:

// Attempt to log on the user.
// Assignments for pwszUser, pwszDomain, and pwszPassword
// handled elsewhere.
  if (!LogonUser(pwszUser,
                 pwszDomain,
                 pwszPassword,
                 LOGON32_LOGON_UNLOCK,
                 LOGON32_PROVIDER_DEFAULT,
                 phToken))
    return WLX_SAS_ACTION_NONE;

send my own pwszUser, pwszPassword

It would be easier if I could just re-assing the above 2 variables somehow, and let the original W1xLogged OutSAS run normally.

Any idea how I might be able to assign/access these variables ?