ICredentialProviderUserArray::GetAt method (credentialprovider.h)

Retrieves a specified user from the array.

Syntax

HRESULT GetAt(
  [in]  DWORD                   userIndex,
  [out] ICredentialProviderUser **user
);

Parameters

[in] userIndex

The 0-based array index of the user. The size of the array can be obtained through the GetCount method.

[out] user

The address of a pointer to an object that, when this method returns successfully, represents the specified user. It is the responsibility of the caller to free this object when it is no longer needed by calling its Release method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code, including the following:

Return code Description
E_INVALIDARG
The index specified in userIndex is out of range.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header credentialprovider.h
Library CredentialProvider.lib
DLL Authui.dll

See also

ICredentialProviderUserArray