TwclWiFiHostedNetwork.SetState(Boolean) Method

Writes the wireless Hosted Network enabled flag.

Namespace: wclWiFi
public
 function SetState(const Enabled: Boolean): Integer;

Parameters

Enabled
Type: Boolean

True to enable the Wireless Hosted Network.

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.

The method can be called without opening the Hosted Network. The method requires administrative rights.