TwclWiFiProfilesManager.SetProfileEapXmlUserData(TGUID,string,Boolean,string) Method

The method sets the Extensible Authentication Protocol (EAP) user credentials as specified by an XML string. The user credentials apply to a profile on an adapter (interface). These credentials can only be used by the caller.

Namespace: wclWiFi
public
 function SetProfileEapXmlUserData(const IfaceId: TGUID;
 const ProfileName: string; const AllUsers: Boolean;
 const UserData: string): Integer;

Parameters

IfaceId
Type: TGUID

The ID of the interface.

ProfileName
Type: string

The name of the profile associated with the EAP user data. Profile names are case-sensitive.

Windows XP with SP3 and Wireless LAN API for Windows XP with SP2: The supplied name must match the profile name derived automatically from the SSID of the network. For an infrastructure network profile, the SSID must be supplied for the profile name. For an ad hoc network profile, the supplied name must be the SSID of the ad hoc network followed by -adhoc.

AllUsers
Type: Boolean

If this parameter is True on Windows 7, Windows Server 2008 R2, and later, the EAP host data will be set for all users of this profile.

UserData
Type: string

An XML string represents a data used to set the user credentials.

Return Value

Type: Integer

If the function succeeds, the return value is wclErrors.WCL_E_SUCCESS. If the function fails, the return value may be one of the WCL return codes.