RasInvokeEapUI function (ras.h)

The RasInvokeEapUI function displays a custom user interface to obtain Extensible Authentication Protocol (EAP) information from the user.

Syntax

DWORD RasInvokeEapUI(
  [in] HRASCONN            unnamedParam1,
  [in] DWORD               unnamedParam2,
  [in] LPRASDIALEXTENSIONS unnamedParam3,
  [in] HWND                unnamedParam4
);

Parameters

[in] unnamedParam1

Handle to the connection returned by RasDial.

[in] unnamedParam2

Specifies the subentry returned in the callback.

[in] unnamedParam3

Pointer to the RASDIALEXTENSIONS structure. This structure should be the same as that passed to RasDial when restarting from a paused state. Ensure that the dwSize member of the RASDIALEXTENSIONS structure specifies the size of the structure. Obtain the size using sizeof(RASDIALEXTENSIONS). This parameter cannot be NULL.

[in] unnamedParam4

Handle to the parent window to use when displaying the EAP user interface.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the following error codes or a value from Routing and Remote Access Error Codes or Winerror.h.

Value Meaning
ERROR_INVALID_HANDLE
The hRasConn parameter is zero, or the lpExtensions parameter is NULL.
ERROR_INVALID_SIZE
The value of the dwSize member of the RASDIALEXTENSIONS structure specifies a version of the structure that isn't supported by the operating system in use.
Other
Use FormatMessage to retrieve the system error message that corresponds to the error code returned.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ras.h
Library Rasapi32.lib
DLL Rasapi32.dll

See also

RASDIALEXTENSIONS

RASEAPINFO

RasDial

Remote Access Service (RAS) Overview

Remote Access Service Functions