电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

c获取无线wifi信号

c获取无线wifi信号_第1页
1/7
c获取无线wifi信号_第2页
2/7
c获取无线wifi信号_第3页
3/7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace wifi { class Program { static void Main(string[] args) { wifi wf = new wifi(); wf.EnumerateAvailableNetwork(); } } class wifi { /// /// 打开一个wifi句柄 /// /// 版本号 /// 保留 /// 支持的最高版本(输出) /// 句柄(要得到的)以后的句柄一般都是这个 /// [DllImport("Wlanapi", EntryPoint = "WlanOpenHandle")] public static extern uint WlanOpenHandle(uint dwClientVersion, IntPtr pReserved, [Out] out uint pdwNegotiatedVersion, ref IntPtr ClientHandle); /// /// 关闭打开的句柄 /// /// 句柄 /// 保留 /// [DllImport("Wlanapi", EntryPoint = "WlanCloseHandle")] public static extern uint WlanCloseHandle([In] IntPtr hClientHandle, IntPtr pReserved); /// /// 列举无线网络适配器 /// /// 句柄 /// 保留 /// 数据指针(非托管) /// [DllImport("Wlanapi", EntryPoint = "WlanEnumInterfaces")] public static extern uint WlanEnumInterfaces([In] IntPtr hClientHandle, IntPtr pReserved, ref IntPtr ppInterfaceList); /// /// 释放内存 /// /// 要释放的内存起始地址 [DllImport("Wlanapi", EntryPoint = "WlanFreeMemory")] public static extern void WlanFreeMemory([In] IntPtr pMemory); /// /// 获得可见的无线网络 /// /// 句柄 /// 适配器的Guid号

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

c获取无线wifi信号

确认删除?
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群