【问题标题】:How to set WLAN card to streaming mode?如何将 WLAN 卡设置为流模式?
【发布时间】:2017-03-27 15:11:34
【问题描述】:

我有一个要求,当设备之间发生数据传输时,应该禁用后台网络扫描,因为它会导致数据中断。当我上网时,我通过打开 Windows 平板电脑/计算机上 WLAN 卡的流媒体模式找到了解决此问题的方法。它说应该设置以下变量:

OID_802_11_MEDIA_STREAM_MODE

但我不确定,我该怎么做?我不是网络人。

我有一个 3rd 方软件(位于:http://www.martin-majowski.de/)可以做到这一点。但我不想依赖那个软件。相反,我想自己设置它或在我的 WPF 应用程序中自动化它(如果可能的话)。

非常感谢任何线索/答案。提前致谢。

【问题讨论】:

    标签: networking streaming wifi


    【解决方案1】:

    经过探索,我找到了问题的答案。我们可以在异步连接后将 WlanIntf​​Opcode.MediaStreamingMode Opcode 设置为 true。

    示例代码:

    iface.ConnectSynchronously(Wlan.WlanConnectionMode.Profile, Wlan.Dot11BssType.Infrastructure, name, 5000);
    iface.MediaStreaming = true;
    

    地点:

    public bool MediaStreaming
    {
        get
        {
            return GetInterfaceInt(Wlan.WlanIntfOpcode.MediaStreamingMode) != 0;
        }
        set
        {
            SetInterfaceInt(Wlan.WlanIntfOpcode.MediaStreamingMode, value ? 1 : 0);
        }
    }
    

    希望它对某人有所帮助。

    【讨论】:

      猜你喜欢
      • 2018-02-12
      • 2020-02-22
      • 2011-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-08
      相关资源
      最近更新 更多