ICredentialProviderCredential::Advise method

Enables a credential to initiate events in the logon or credential UI through a callback interface. This method should be called before other methods in ICredentialProviderCredential interface.

Syntax


HRESULT Advise(
  [in]  ICredentialProviderCredentialEvents *pcpce
);

Parameters

pcpce [in]

Type: ICredentialProviderCredentialEvents*

A pointer to an ICredentialProviderCredentialEvents callback interface to be used as the notification mechanism.

Return value

Type: HRESULT

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

Remarks

This method is optional and your implementation can simply return E_NOTIMPL. For example, if the UI never changes, this method is not needed.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Credentialprovider.h

IDL

Credentialprovider.idl

See also

ICredentialProviderCredential
ICredentialProviderCredential::UnAdvise

 

 

Community Additions

ADD
Show:
© 2014 Microsoft