RE: Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() cr



This is a guess, but have you implemented the GetCheckboxValue and
SetCheckboxValue methods on your credential tile? If you used the "normal" CP
sample, the methods should be there, but set to return E_NOTIMPL and not
actually do anything. The "all controls" sample properly implements the
methods. Have you tried that?

As a related idea, maybe you could try starting with the "All Controls"
sample, which should work fine, and modify it to programatically change the
checkbox field. That should hopefully give you some insight into whether the
problem is with your implementation or if this is a MS bug.

"sachin.cybage@xxxxxxxxx" wrote:

Hello All,
I am developing fingerprint Credential Provider component for Windows
Vista. I have a problem with the usage of function SetFieldCheckbox()
of ICredentialProviderCredentialEvents interface.

LogonUI crashes whenever I call this function from my code. I modified
beta-2 sample provided provided by Microsoft to insert
SetFieldCheckbox() call. There also a call to SetFieldCheckbox() made
beta 2 sample to crash. I have given details of my problem below along
with the code snippet.



I have a check-box in our credential user tile. If checkbox is checked
then credential provider shall not use the username typed in the
username field and shall clear the content of username field. In
contrast to this; whenever user types any character in username field
then I want to uncheck the checkbox (if it is in checked state).



code snippet:

Code from HRESULT CSampleCredential::SetStringValue() function



if(IFI_USERNAME == dwFieldID)// if it is username field

{

//check-uncheck checkbox depending upon string value of username
editbox

if(m_pCredProvCredentialEvents)//if
ICredentialProviderCredentialEvents* is available

{

if(m_bChecked == FALSE)//if check box is not checked

m_pCredProvCredentialEvents-
SetFieldCheckbox(this,IFI_FMFA,m_bChecked=TRUE,_T(""));

//this code causes a heap corruption

else // if check box is checked

m_pCredProvCredentialEvents-
SetFieldCheckbox(this,IFI_FMFA,m_bChecked=FALSE, _T(""));



}

}

//IFI_FMFA is checkbox control id

//IFI_USERNAME is a username control id.



I used Window Vista SP1 RC, but still call to SetFieldCheckbox()
crashed LogonUI.
Any inputs appreciated.

Regards,
Sach

.



Relevant Pages

  • Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() crashes LogonUI
    ... I am developing fingerprint Credential Provider component for Windows ... I have a problem with the usage of function SetFieldCheckbox() ... username field and shall clear the content of username field. ... then I want to uncheck the checkbox. ...
    (microsoft.public.platformsdk.security)
  • Re: cant get control to hold state
    ... username field holds it's state. ... If I change the password field from ... password mode to normal text mode, ... trick to getting a checkbox to hold it's state? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Remember checkbox doesnt remain checked. Not password problem.
    ... Filter writes then have the checkbox window open, capture on regmon, check the box, click APPLY then stop caputuring. ... "SPAMCOP User" wrote: ... > First let me state passwords ARE being remembered, ... > If I click the username field and tab through the password field, ...
    (microsoft.public.windowsxp.general)
  • Remember checkbox doesnt remain checked. Not password problem.
    ... First let me state passwords ARE being remembered, ... Happens in Firefox, IE 6, Outlook Connector... ... If I click the username field and tab through the password field, ... just doesn't remember the checkbox. ...
    (microsoft.public.windowsxp.general)