Disabling scopes in the Credential Provider

I am working on a Windows 7 credential provider with cpp. I want to disable text boxes and submit button while the system is running in the background. For this I tried using the following code:

_pCredProvCredentialEvents->SetFieldInteractiveState(this,SFI_EDIT_TEXT,CPFIS_DISABLED);

      

Here SFI_EDIT_TEXT

represents the object that I want to change and CPFIS_DISABLED

shows that it should be disabled (at least I guess it does). But I didn't get any useful result. Anyone can help?

+1


source to share


1 answer


There are several situations where using SetFieldInteractiveState

will not work. For example, if the user pressed the Submit button, your provider's function will be called GetSerialization

and no GUI changes will be made to the LogonUI until you return from GetSerialization

. I think GUI changes are only done between calls to your provider functions.



PS I know this question has been asked a long time ago, but in the future, maybe my answer may help others.

+1


source







All Articles