PC Review


Reply
Thread Tools Rate Thread

GINA for Smart Card logon

 
 
=?Utf-8?B?ZHh1bGVl?=
Guest
Posts: n/a
 
      27th Sep 2007
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.
 
Reply With Quote
 
 
 
 
Steve Riley [MSFT]
Guest
Posts: n/a
 
      27th Sep 2007
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?

--
Steve Riley
(E-Mail Removed)
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


"dxulee" <(E-Mail Removed)> wrote in message
news:2F78DBF8-A5B7-4052-BDFE-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
=?Utf-8?B?ZHh1bGVl?=
Guest
Posts: n/a
 
      27th Sep 2007
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.


"Steve Riley [MSFT]" wrote:

> 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?
>
> --
> Steve Riley
> (E-Mail Removed)
> http://blogs.technet.com/steriley
> http://www.protectyourwindowsnetwork.com
>
>
> "dxulee" <(E-Mail Removed)> wrote in message
> news:2F78DBF8-A5B7-4052-BDFE-(E-Mail Removed)...
> > 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.

>
>

 
Reply With Quote
 
=?Utf-8?B?dA==?=
Guest
Posts: n/a
 
      27th Sep 2007


"Steve Riley [MSFT]" wrote:

> 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?
>
> --
> Steve Riley
> (E-Mail Removed)
> http://blogs.technet.com/steriley
> http://www.protectyourwindowsnetwork.com
>
>
> "dxulee" <(E-Mail Removed)> wrote in message
> news:2F78DBF8-A5B7-4052-BDFE-(E-Mail Removed)...
> > 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.

>
>

 
Reply With Quote
 
Steve Riley [MSFT]
Guest
Posts: n/a
 
      27th Sep 2007
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 Removed)
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


"dxulee" <(E-Mail Removed)> wrote in message
news:B88C7298-BCBF-467D-AE04-(E-Mail Removed)...
> 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.
>
>
> "Steve Riley [MSFT]" wrote:
>
>> 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?
>>
>> --
>> Steve Riley
>> (E-Mail Removed)
>> http://blogs.technet.com/steriley
>> http://www.protectyourwindowsnetwork.com
>>
>>
>> "dxulee" <(E-Mail Removed)> wrote in message
>> news:2F78DBF8-A5B7-4052-BDFE-(E-Mail Removed)...
>> > 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.

>>
>>

 
Reply With Quote
 
=?Utf-8?B?dA==?=
Guest
Posts: n/a
 
      29th Sep 2007


"Steve Riley [MSFT]" wrote:

> 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?
>
> --
> Steve Riley
> (E-Mail Removed)
> http://blogs.technet.com/steriley
> http://www.protectyourwindowsnetwork.com
>
>
> "dxulee" <(E-Mail Removed)> wrote in message
> news:2F78DBF8-A5B7-4052-BDFE-(E-Mail Removed)...
> > 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.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no smart card logon gina othmane Security, Spyware and Viruses 1 21st Apr 2011 02:43 PM
i can't get the gina for smart card logon on xp othmane Windows XP 0 21st Apr 2011 02:25 PM
Microsoft GINA:Smart card Insertion is not recognized =?Utf-8?B?QW5hbmQgQiBTYW5rbGlwdXI=?= Microsoft Windows 2000 Advanced Server 0 23rd Nov 2005 06:29 AM
smart card logon is delayed 2+ minutes after original logon screen =?Utf-8?B?ZG91Z2hib3k=?= Windows XP Help 0 7th Jul 2004 11:46 PM
Smart Card GINA Ranga Windows XP Embedded 0 21st Jul 2003 01:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 PM.