wclWiFiClientDisconnect Method |
Disconnects an interface from its current network.
Namespace: wclWiFiAssembly: wclWiFiFramework (in wclWiFiFramework.dll) Version: 7.13.1.0 (7.13.1.0)
Syntaxpublic int Disconnect(
Guid IfaceId
)
Public Function Disconnect (
IfaceId As Guid
) As Integer
public:
int Disconnect(
Guid IfaceId
)
Parameters
- IfaceId Guid
- The WLAN interface's ID to be
disconnected.
Return Value
Int32 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.
Remarks 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.
See Also