![MiTecWLANCFImage | Embarcadero RAD Studio Delphi C++Builder Blogs mitecwlancfimage](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2021/03/MiTecWLANCFImage-6523226.jpg?resize=1140%2C694&ssl=1)
Sometimes developers need to programmatically list the known Wi-Fi Networks and their configurations from a Delphi App. Don’t know what to do? Don’t be concerned. MiTec’s System Information Management Suite assists in enumerating the known Wi-Fi networks; in this blog post, we will learn how to use the MiTeC WLANC Component.
Platforms: Windows.
Installation Steps:
You can easily install this Component Suite from GetIt Package Manager. The steps are as follows.
- Navigate In RAD Studio IDE->Tools->GetIt Package Manager->select Components in Categories->Components->Trail -MiTec system Information Component Suite 14.3 and click Install Button.
- Read the license and Click Agree All. An Information dialog saying ‘Requires a restart of RAD studio at the end of the process. Do you want to proceed? click yes and continue.
- It will download the plugin and installs it. Once installed Click Restart now.
How to run the Demo app:
- Navigate to the System Information Management Suite trails setup, Demos folder which is installed during Get It installation e.g) C:UsersDocumentsEmbarcaderoStudio21.0CatalogRepositoryMiTeC-14.3DemosDelphi26
- Open the WLANC project in RAD studio 10.4.1 compile and Run the application.
- This Demo App shows how to list down the Wi-Fi networks, enumerate among them, and access their configuration properties.
Components used in MSIC WLANC Demo App:
- TMiTeC_WLANC gathers information about known Wi-Fi networks and their configurations.
- TListView to show the Known Wi-Fi Network and its properties.
- TButton to save the listed Wi-Fi Network to a .sif file and close the application.
Implementation Details:
- An Instance is created WLANC of TMiTeC_WLANC. Loop through the WLANC Record count and add the Network configurations item to the list view. List down the properties such as SSID, Key, Authentication, Encryption, Adapter Name, IP address Timestamp, etc. of each TWLANRecord item to list view subitems.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
procedure TForm2.RefreshData; var i: Integer; begin Screen.Cursor:=crHourglass; try WLANC.RefreshData; List.Items.Clear; for i:=0 to WLANC.RecordCount-1 do with List.Items.Add do begin Caption:=WLANC.Records[i].SSID; SubItems.Add(WLANC.Records[i].Key); SubItems.Add(WLANC.Records[i].Authentication); SubItems.Add(WLANC.Records[i].Encryption); SubItems.Add(WLANC.Records[i].Connection); SubItems.Add(WLANC.Records[i].AdapterName); SubItems.Add(WLANC.Records[i].IPAddress); SubItems.Add(DateTimeToStr(UTCToLocalDatetime(WLANC.Records[i].Timestamp))); end; finally Screen.Cursor:=crDefault; end; end; |
- Display the known Wi-Fi Network properties as shown below.
![WLANCDemo8731335 | Embarcadero RAD Studio Delphi C++Builder Blogs wlancdemo 8731335](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2021/03/WLANCDemo-8731335.png?resize=750%2C406&ssl=1)
It’s that simple to enumerate known Wi-Fi Networks and list their configuration details for your application. Use this MiTeC component suite and get the job done quickly.
You can easily Iterate Through Known Wifi Networks On Windows Using Delphi’s IDE Software. Begin developing in C++ or Delphi environments right away.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition