ICredentialProviderCredential::GetComboBoxValueCount method

Gets a count of the credential provider items in the given combo box, and designates which item should have initial selection.

Syntax


HRESULT GetComboBoxValueCount(
  [in]   DWORD dwFieldID,
  [out]  DWORD *pcItems,
  [out]  DWORD *pdwSelectedItem
);

Parameters

dwFieldID [in]

Type: DWORD

The ID of the credential provider field for which a combo box value count is requested.

pcItems [out]

Type: DWORD*

When this method returns, contains a pointer to the number of items in the given combo box.

pdwSelectedItem [out]

Type: DWORD*

When this method returns, contains a pointer to the item that receives initial selection.

Return value

Type: HRESULT

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

Remarks

Credential UI and logon UI use this method to obtain the number of items in a combo box and designate which item should have initial selection.

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