WiFi Framework
ContentsIndexHome
PreviousUpNext
TwclWiFiClient.Disconnect Method

Disconnects an interface from its current network.

Syntax
Pascal
function Disconnect(const IfaceId: TGUID): Integer;
Parameters 
Description 
const IfaceId: TGUID 
The WLAN interface's ID to be disconnected.  

If the function succeeds, the return value is 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.

Copyright (c) 2006-2019. All rights reserved.