WiFi Framework C++ Edition
CwclCustomWiFiComponent Class Referenceabstract

The base component class for all WCL WiFi Framework components. More...

#include <wclWiFi.h>

Inheritance diagram for CwclCustomWiFiComponent:
CwclCustomWiFiMemoryComponent CwclWiFiClient CwclWiFiEvents CwclWiFiHostedNetwork CwclWiFiProfilesManager

Public Member Functions

 CwclCustomWiFiComponent ()
 Creates a new component.
 
virtual ~CwclCustomWiFiComponent ()
 Frees the component.
 
int Close ()
 Closes the component.
 
int Open ()
 Opens the component.
 
bool GetActive () const
 Gets the component state.
 
 __declspec (property(get=GetActive)) bool Active
 Gets the component state.
 
__event void AfterOpen (void *Sender)
 The event fires after the component was successfully opened.
 
__event void BeforeClose (void *Sender)
 The even fires before the component will be closed.
 

Protected Member Functions

int RequestAccess ()
 The function requests access to the WiFi features on Win 11 24H2 and above.
 
virtual int InternalClose ()=0
 Executes additional finalization procedures.
 
virtual int InternalOpen ()=0
 Executes additional initialization procedures.
 
virtual void DoAfterOpen ()
 Fires the AfterOpen event.
 
virtual void DoBeforeClose ()
 Fires the BeforeClose event.
 
HANDLE GetHandle () const
 Provides access to the WLAN subsystem handle.
 
 __declspec (property(get=GetHandle)) HANDLE Handle
 Provides access to the WLAN subsystem handle.
 

Detailed Description

The base component class for all WCL WiFi Framework components.

The class implements the basic operations such us initializing and finalizing underlying WLAN subsystem, manages privileges and others common operations.