GINA for Smart Card logon

G

Guest

Recently, I am writing a GINA for Smart Card logon.But I have a problem.

First, I installed PC/SC driver and invoked a function in WlxInitialize
like this
WlxSetOption(g_hWlx, WLX_OPTION_USE_SMART_CARD, 1, NULL);When I remove the
smart card,winlogon looks as if it can not receive the WLX_SAS_TYPE_SC_REMOVE
event.I do not known why. I think windows should send this message to
winlogon.At last, I create a thread and try to get the message
WM_DEVICECHANGE. If it occurs, I will invoke the funtion WlxSasNotify.So I
can receive the WLX_SAS_TYPE_SC_REMOVE event.But there is another problem.My
computer may stop at the winlogon desktop and the default desktop may be
hidden.

Who can give me some solution or suggestion ? And my os is windows xp sp2
Thanks very much.
 
S

Steve Riley [MSFT]

Winlogon already supports smartcards. Why are you writing a new GINA? And
you do know the GINA is gone in Windows Vista/Server 2008, right?
 
G

Guest

You are right. But Windows XP will exist for a long time.So my company need
to support it.
Winlogon supports smartcards.But how can I receive WLX_SAS_TYPE_SC_REMOVE
in the funtion WlxLoggedOnSAS.When I remove smart cards, Winlogon does not
response to the action.
 
S

Steve Riley [MSFT]

Are you trying to control what happens when people remove their smart cards
after logging on? We've already got group policy for that:

Computer Configuration | Windows Settings | Security Settings | Local
Policies | Security Options |
Interactive logon: Smart card removal behavior = No action, Lock
workstation, or Force logoff


--
Steve Riley
(e-mail address removed)
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top