IConnectableCredentialProviderCredential::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(      
    DWORD dwFieldID,
    DWORD *pcItems,
    DWORD *pdwSelectedItem
);

Parameters

  • dwFieldID
    [in] The ID of the credential provider field for which a combo box value count is requested.
  • pcItems
    [out] When this method returns, contains a pointer to the number of items in the given combo box.
  • pdwSelectedItem
    [out] When this method returns, contains a pointer to the item that receives initial selection.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Credential user interface (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.