您好,
我想要启用并且禁用来自我的应用程序的wifi对于Windows 7及更高版本的转换。
I Want To Enable and Disable The wifi From My Applicaion For Windows 7 and later vertion.
请告诉我如何处理。
Please Tell me How To Proceede.
谢谢和关注
shavali
推荐答案
朋友,
Hi Friend,
>>我要启用和禁用来自我的应用程序的wifi对于Windows 7及更高版本的转换。
据我所知,您可以通过利用WMI和Win32_NetworkAdapter WMI类在C#中实现此目的。 Win32_NetworkAdapter类具有可在选定网络接口上执行的启用和禁用方法。
As far as I know, you can achieve this in C# by leveraging WMI and the Win32_NetworkAdapter WMI class. The Win32_NetworkAdapter class has Enable and Disable methods which can be executed on a selected network interface.
您可以参考以下示例:以编程方式启用/禁用连接
You can refer the following example: Programmatically Enable / Disable Connection
使用WMI禁用/启用网络适配器: https:// code。 msdn.microsoft/windowsapps/Disableenable-network-8112f642
Disable/enable network adapter using WMI: code.msdn.microsoft/windowsapps/Disableenable-network-8112f642
如果您想试用Windows Mobile系统。您可以参考以下帖子。
If you want to try on Windows Mobile system. You may can refer the following post.
如何使用C#在Windows Mobile 6中启用/禁用WIFI: HTTPS? //social.msdn.microsoft/Forums/en-US/e7c929c7-372c-4196-901f-c3d108cb2ea1/how-to-enabledisable-wifi-in-windows-mobile-6-using-c?forum=vssmartdevicesvbcs
How to Enable/Disable WIFI in Windows Mobile 6 using C#: social.msdn.microsoft/Forums/en-US/e7c929c7-372c-4196-901f-c3d108cb2ea1/how-to-enabledisable-wifi-in-windows-mobile-6-using-c?forum=vssmartdevicesvbcs
最好的问候,
Best Regards,
Yohann Lu
Yohann Lu
更多推荐
在Windows 7及更高版本中启用wifi
发布评论