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.
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.