TwclWiFiProfilesManager.SetPosition(TGUID,string,Cardinal) Method
The method sets the position of a single, specified profile in the preference list.
public function SetPosition(const IfaceId: TGUID; const ProfileName: string; const Position: Cardinal): Integer;
Parameters
- IfaceId
- Type: TGUID
The ID of the interface.
- ProfileName
- Type: string
The name of the profile. Profile names are case-sensitive.
- Position
- Type: Cardinal
Indicates the position in the preference list that the profile should be shifted to. 0 (zero) corresponds to the first profile in the list that is returned by the
GetProfileList
method.
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.