TwclWiFiClient.Disconnect(TGUID) Method

Disconnects an interface from its current network.

Namespace: wclWiFi
public
 function Disconnect(const IfaceId: TGUID): Integer;

Parameters

IfaceId
Type: TGUID

The WLAN interface's ID to be disconnected.

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.

Do not call the method before calling Connect unless you want to change a profile to an on-demand profile. When you call Connect to establish a network connection, any existing network connection is dropped automatically.