Re: Blocking WLX_SAS_TYPE_SC_INSERT
From: Jakub Gwozdz (gwozdziu_at_rpg.pl)
Date: 03/30/05
- Previous message: kenneth: "Cannot instantiate a X509SecurityToken object in MFC C++"
- In reply to: Marco van Nieuwenhoven: "Blocking WLX_SAS_TYPE_SC_INSERT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 30 Mar 2005 17:16:01 +0200
Marco van Nieuwenhoven wrote:
> Hi all,
>
> I have mada a Gina Stub and I would like NOT to receive the
> WLX_SAS_TYPE_SC_INSERT command. The smartcard I use has a full CSP
> implementation but I would not like to use this. I use a different security
> feature from the smartcard and Insertions and removals I detecct myself.
>
> I have tried to return WLX_SAS_ACTION_NONE when I receive
> WLX_SAS_TYPE_SC_INSERT but this gives timing problems and makes the screen
> flicker.
>
> Any help would be appreciated.
I think that you could call WlxSetOption(WLX_OPTION_USE_SMART_CARD, 0);.
Of course, if your gina is only a wrapper to msgina.dll, it won't be enough.
MS-Gina calls WlxSetOption(WLX_OPTION_USE_SMART_CARD, 1), and WinLogon "flicks" on card removal. But how msgina knows WlxSetOption 's proc address? You pass it in WlxInitialize in dispatch table. So, it should be enough, if you passes your own YourWlxSetOption, which is wrapper on original WlxSetOption, designed to ignore WlxSetOption with param WLX_OPTION_USE_SMART_CARD. Works for me.
Best regards
Jakub Gwóźdź
- Previous message: kenneth: "Cannot instantiate a X509SecurityToken object in MFC C++"
- In reply to: Marco van Nieuwenhoven: "Blocking WLX_SAS_TYPE_SC_INSERT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]