RasSetEapUserData function

Use the RasSetEapUserData function to store user-specific Extensible Authentication Protocol (EAP) information for the specified phone-book entry in the registry.

Syntax


DWORD RasSetEapUserData(
  _In_  HANDLE hToken,
  _In_  LPCTSTR pszPhonebook,
  _In_  LPCTSTR pszEntry,
  _In_  BYTE *pbEapData,
  _In_  DWORD dwSizeofEapData
);

Parameters

hToken [in]

Handle to a primary or impersonation access token that represents the user for which to store data. This parameter can be NULL if the function is called from a process already running in the user's context.

pszPhonebook [in]

Pointer to a null-terminated string that specifies the full path of the phone-book (PBK) file. If this parameter is NULL, the function uses the system phone book.

pszEntry [in]

Pointer to a null-terminated string that specifies an existing entry name.

pbEapData [in]

Pointer to the data to store for the user.

dwSizeofEapData [in]

Specifies the size of the data pointed to by the pbEapData parameter.

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.

ValueMeaning
E_INVALIDARG

The dwSizeofEapData parameter is zero, or the pbEapData parameter is NULL.

ERROR_CANNOT_OPEN_PHONEBOOK

RasSetEapUserData was unable to open the specified phone-book file.

ERROR_CANNOT_FIND_PHONEBOOK_ENTRY

RasSetEapUserData was unable to find the specified entry in the phone book.

Other

Use FormatMessage to retrieve the system error message that corresponds to the error code returned.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Ras.h

Library

Rasapi32.lib

DLL

Rasapi32.dll

Unicode and ANSI names

RasSetEapUserDataW (Unicode) and RasSetEapUserDataA (ANSI)

See also

Remote Access Service (RAS) Overview
Remote Access Service Functions
RasGetEapUserData
RasInvokeEapUI

 

 

Community Additions

ADD
Show:
© 2014 Microsoft