如何在C ++中管理wifi(Windows 10) [英] How to manage wifi in C++ (windows 10)

查看:207
本文介绍了如何在C ++中管理wifi(Windows 10)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想知道如何制作这个控制台应用

一个应用程序列出保存在电脑中的所有wifi



如何我可以做这个??使用什么方法??



我尝试过:



不试试我只是想知道我怎么开始???

解决方案

首先要做的是查询你最喜欢的搜索机器。由于获取此类硬件相关信息取决于操作系统,因此应将其包含在查询中。所以查询可能是c ++ windows list wlan interfaces。



点击后你应该能够找到这些Windows API函数,它们还提供了示例代码:

WlanEnumInterfaces function(Windows) [ ^ ],

WlanGetProfile功能(Windows) [ ^ ]和

WlanGetAvailableNetworkList功能(Windows) [ ^ ]。



Repea用Qt等其他选项进行搜索。这将找到

QNetworkConfigurationManager Class | Qt Network 5.7 [ ^ ](检查类型 QNetworkConfiguration :: BearerWLAN 过滤WLAN接口),并且

QNetworkConfiguration类| Qt Network 5.7 [ ^ ]。

Hi all, I wanna know how to make this console app
An app to list all wifi saved in the pc

how i can do this?? What method to use ??

What I have tried:

No try I just Want to know how i can start ???

解决方案

The first thing to do is querying you favorite search machine. Because getting such hardware related information depends on the operating system it should be included in the query. So a query might be "c++ windows list wlan interfaces".

Following some hits you should be able to find these Windows API functions which provides also example code:
WlanEnumInterfaces function (Windows)[^],
WlanGetProfile function (Windows)[^], and
WlanGetAvailableNetworkList function (Windows)[^] .

Repeat the search with other options like Qt. This will find
QNetworkConfigurationManager Class | Qt Network 5.7[^] (check for type QNetworkConfiguration::BearerWLAN to filter WLAN interfaces), and
QNetworkConfiguration Class | Qt Network 5.7[^].


这篇关于如何在C ++中管理wifi(Windows 10)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆