The reason this is happening is because the UI shown at Start-Shutdown is made by Explorer.exe and not by Winlogon.exe (thus your GINA is never called for that).
To achieve what you want, you'd had to hook a function in Explorer.exe or completely replace the shell (Explorer.exe), alternatively you could use Group Policy to hide Shutdown option in the shell, yet retain in GINA and train users to use SAS (Ctrl+Alt+Del) if they want to shutdown.
There may be other solutions too.
I'm tryin to start a my gina.dll to use a memory card (sle4442) to logon on win2000/xp systems, but I have not some good staff to begin. Can anyone help me with some basica code?I'm experienced on smart card and memory card and I can give you my help
I've problem in the WlxInitialize export function,
try to set with the WlxSetOption the Smart Card SAS event and i could not get the SAS_SC_INSERT with Windows XP.
There is any work around?
Thanks very much
Posted by maxsoft
on 12/27/2005 03:37pm
Salve stefano, mi chiamo Massimiliano e sono un programmatore freelance. Scusa la sfacciatagine ma ho visto che hai implementato giC_ qualcosa a cui vorrei arrivare anch'io. Vorrei implementere una mia dll (gina.dll) per l'accesso a win2000/xp con l'ausilio di una memory card. Sto studiando pGina.dll e vorrei implementare la funzionalitC_ per il logon da memory card (sle4442: sulla quale memorizzo nome utente in chiaro e l'hash a 32 bit della password): la dll legge prima nome utente e l'hash della pasword dalla carta quindi tramite nome utente legge la password dal sistema, la confronta com l'MD5 della password ripescata su windows e se la funzione C( verificata si viene autenticati. Conosco bene le memory card e le smart card e le chiamate alle API della winscard.dll, ma non so da dove cominciare con Wlx. Sapresti darmi un aiuto per partire?Potrei fare altrettanto con l'uso delle smart card.
Using the XGina.DLL on Windows 2000:
When I turn on the PC I get the following calls during the log on
I have expected the "WlxDisplaySASNotice" after "WlxInitialize".
But this call comes first time when I logoff the user (not Shutdown or Restart!).
Background for this: I need to implement a welcome message (i.e. "Press Ctrl+Alt+Del to logon").
Therefore I thought to do this in the "WlxDisplaySASNotice" function.
Can anyone tell me where to find my mistake? Maybe I misunderstand the standard GINA procedure.
I just finished an Authentication Solution that use Smart Card to logon to windows. It work very well on win 2000 BUT in WinXP I could not get the SAS_SC_INSERT. And the dialog on the initial logon say "Press CAD" BUT in Win2K it sayes "Inser Smart Card OR Press CAD" !
Is there any Registry key that make WinXP use SmartCardLogon ?
Thanks very much
In WlxLoggedOutSAS() i am checking Pin number in one device and after verifing that number i am reding user name and password from the device and then doing login with LononUser() function. Its working fine.
Now i want to bypass LogonUser() function with inputs username and password. Means after verifing Pin number i don't want to doLogonUser() with username and password.
Probably this is the BEST online help that i can figure out at this moment, and hopefully it will assist me in getting to start on how essentially to set the start parameter for a fingerprint reader to system.
Shall i create a new windows service in order to ensure that the driver is loaded by the time the GINA is invoke?
Please assist me on this stumbled situation. THNX Q!
Nice code! But I got one additional question: How can I add my logo to the shutdown dialog? I managed to add the code to do so (the dlgId of the shutdown-dialog is 2200) and it works when the user calls taskmanager->shutdown. But it DOESN'T work when the user calls start->shutdown! Then the "normal" windows dialogbox is displayed (Windows 2000, VC++ 6). Why? Anyone who has managed this?