ICredentialProviderCredential::UnAdvise method (credentialprovider.h)

Used by the Logon UI or Credential UI to advise the credential that event callbacks are no longer accepted.

Syntax

HRESULT UnAdvise();

Return value

Type: HRESULT

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

Remarks

This method is optional. If you do not implement this method, you should just return E_NOTIMPL.

If this method is called, it indicates that the ICredentialProviderCredentialEvents pointer provided in Advise is no longer valid. It is the responsibility of the credential provider to call Release on the provided ICredentialProviderCredentialEvents pointer during this method.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header credentialprovider.h

See also

ICredentialProviderCredential

ICredentialProviderCredential::Advise