ICredentialProviderCredentialEvents2::SetFieldOptions method (credentialprovider.h)

Specifies whether a specified field in the logon or credential UI should display a "password reveal" glyph or is expected to receive an e-mail address.

Syntax

HRESULT SetFieldOptions(
  ICredentialProviderCredential                *credential,
  DWORD                                        fieldID,
  CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS options
);

Parameters

credential

An ICredentialProviderCredential interface pointer to the credential object.

fieldID

The ID of the field in the logon or credential UI for which this option applies.

options

One or more of the CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS values, which specify the field options.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header credentialprovider.h

See also

ICredentialProviderCredential2::BeginFieldUpdates

ICredentialProviderCredential2::EndFieldUpdates

ICredentialProviderCredentialEvents2

ICredentialProviderCredentialWithFieldOptions::GetFieldOptions