EapPeerInvokeIdentityUI function (eapmethodpeerapis.h)

Raises a custom interactive user interface dialog to obtain user identity information for the EAP method on the client.

Syntax

DWORD EapPeerInvokeIdentityUI(
  EAP_METHOD_TYPE *pEapType,
  DWORD           dwFlags,
  HWND            hwndParent,
  DWORD           dwSizeOfConnectionData,
  const BYTE      *pConnectionData,
  DWORD           dwSizeOfUserData,
  const BYTE      *pUserData,
  DWORD           *pdwSizeOfUserDataOut,
  BYTE            **ppUserDataOut,
  LPWSTR          *ppwszIdentity,
  EAP_ERROR       **ppEapError
);

Parameters

pEapType

An EAP_METHOD_TYPE structure that contains vendor and author information about the EAP method used for authenticating the connection.

dwFlags

A combination of EAP flags that describe the EAP authentication session behavior.

hwndParent

A handle to the parent window which will spawn the interactive user interface dialog to obtain the identity data.

dwSizeOfConnectionData

The size, in bytes, of the user interface context data specified by pUIContextData.

pConnectionData

A pointer to an opaque byte buffer that contains the connection data.

dwSizeOfUserData

Specifies the size, in bytes, of the user identity data returned in dwSizeOfUserData.

pUserData

A pointer to the user data specific to this authentication used to pre-populate the user data. When this API is called for the first time, or when a new authentication session starts, this parameter is NULL. Otherwise, set this parameter to the pUserData member of the structure pointed to by theppResult parameter received by EapPeerGetResult.

pdwSizeOfUserDataOut

Specifies the size, in bytes, of the ppUserDataOutbuffer.

ppUserDataOut

A pointer to the pointer of the returned user data. The data is passed to EapPeerBeginSession as input pUserData.

ppwszIdentity

A pointer to the returned user identity. The pointer will be included in the identity response packet and returned to the server.

ppEapError

A pointer to the address of an EAP_ERROR structure that contains any errors raised during the execution of this function call. After consuming the error data, this memory must be freed by calling EapPeerFreeErrorMemory.

Return value

None

Remarks

This call is performed by a peer-based EAPHost using a function pointer to this API. This API must be implemented on the EAP method loaded by EAPHost, and must strictly conform to the syntax and parameter types specified in the documentation.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header eapmethodpeerapis.h

See also

EAPHost Peer Method Configuration Functions

EapPeerInvokeIdentityUI