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(
  [in] ICredentialProviderCredential                *credential,
  [in] DWORD                                        fieldID,
  [in] CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS options
);

Parameters

[in] credential

An ICredentialProviderCredential interface pointer to the credential object.

[in] fieldID

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

[in] 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