locked
Credential Provider - Prompt for PIN RRS feed

  • Question

  • I've written a full featured CP (logon,unlock & change password) that interfaces with a token system.  I have two more tiles that need to be created for setting the PIN and a "next token code" situation.  Since I already have the logon tile displayed, how do I inform LogonUI to display a new tile?  I could create my own dialog to receive the info, but I'd rather stick with the CP tiles if possible.

    Greg

    Thursday, January 26, 2012 11:19 AM

Answers

  • LogonUI calls ICredentialProvider::Advise method with a reference to a callback interface of type ICredentialProviderEvents that can be used as the notification mechanism.

    HRESULT ICredentialProvider::Advise(
      [in]  ICredentialProviderEvents *pcpe,
      [in]  UINT_PTR upAdviseContext);
    


    You will need to keep the reference to ICredentialProviderEvents interface (i.e. pcpe) and also the passed advise context (i.e. upAdviseContext). Then, at any time that you need LogonUI to re-enumerate your credential tiles, you may call:

    pcpe->upAdviseContext(upAdviseContext);
    

    ----
    Nima Sharifimehr.
    sbucsc at yahoo dot com
    Thursday, January 26, 2012 3:58 PM