ICredentialProviderCredential::SetSelected method

Called when a credential is selected. Enables the implementer to set logon characteristics.

Syntax


HRESULT SetSelected(
  [out]  BOOL *pbAutoLogon
);

Parameters

pbAutoLogon [out]

Type: BOOL*

When this method returns, contains TRUE if selection of the credential indicates that it should attempt to logon immediately and automatically, otherwise FALSE. For example, a credential provider that enumerates an account without a password may want to return this as true.

Return value

Type: HRESULT

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

Remarks

Returning any value other than S_OK causes credential UI and logon UI to behave as if no selection occurred.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Credentialprovider.h

IDL

Credentialprovider.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft