Share via


RasSetEapUserData (Windows CE 5.0)

Send Feedback

This function stores user-specific Extensible Authentication Protocol (EAP) information for the specified phone-book entry in the registry.

DWORD RasSetEapUserData(HANDLEhToken,LPCTSTRpszPhonebook,LPCTSTRpszEntry,BYTE* pbEapData,DWORDdwSizeofEapData);

Parameters

  • hToken
    [in] This parameter is ignored and should be set to NULL.
  • pszPhonebook
    [in] This parameter is ignored and should be set to NULL. Dial-up networking stores phone-book entries in the registry rather than in a phone-book file.
  • 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 Values

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the following error codes.

Value Definition
E_INVALIDARG The dwSizeofEapData parameter is zero, or the pbEapData parameter is NULL.
ERROR_CANNOT_FIND_PHONEBOOK_ENTRY RasSetEapUserData was unable to find the specified entry in the phone book.
ERROR_CANNOT_OPEN_PHONEBOOK RasSetEapUserData was unable to open the specified phone-book file.
Other Use FormatMessage to retrieve the system error message that corresponds to the error code returned.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ras.h.
Link Library: Coredll.lib.

See Also

FormatMessage | Extensible Authentication Protocol

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.