RE: Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() cr
- From: sushi_cw <sushicw@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Mar 2008 07:05:04 -0700
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
- Follow-Ups:
- Re: Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() cr
- From: sachin . cybage
- Re: Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() cr
- References:
- Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() crashes LogonUI
- From: sachin . cybage
- Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() crashes LogonUI
- Prev by Date: Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() crashes LogonUI
- Next by Date: Re: How to retrieve "Public Key Policies" programmatically
- Previous by thread: Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() crashes LogonUI
- Next by thread: Re: Call to ICredentialProviderCredentialEvents::SetFieldCheckbox() cr
- Index(es):
Relevant Pages
|