Smartcard msgina hooking

From: Sergio Ortiz (sergio.ortiz_at_icard.net)
Date: 03/29/04


Date: 29 Mar 2004 09:04:29 -0800

Hi all,

I am developing a smartcard based logon by hooking Msgina.
After getting user credentials using the smartcard , I call Msgina's
WlxLoggedOutSAS.
We have decided to hide the default user&passw dialog when a smartcard
logon in required.
This is achieved by hooking the WlxDialogBoxParam function. I hide the
common user&passwd dialog and fill these fields with the desired user
credentials.
Everything works fine but, when I enter an incorrect password, Msgina
shows the corresponding message and the hidden dialog window gets the
control.
The effect is that everything gets hung - the msgina hidden dialog has
the control - till Esc key is pressed - the msgina dialog finishes
with IDCANCEL.

As I wouldn't like to implement the WlxLoggedOutSAS completely...is
there any way of detecting this state from my DlgHook?

Thanks in advance