查找使用Windows API的通道
Find what is the channel using Windows API
我正在尝试使用windows API获取通道。到目前为止,我已经尝试将wlan_intf_opcode_channel_number与WlanQueryInterface函数一起使用。我不太确定这个回复是什么意思,希望有人能澄清一下。
ULONG channel = 0;
DWORD dwSizeChannel = sizeof(channel);
dwResult = WlanQueryInterface(
hClient,
InterfaceGuid,
wlan_intf_opcode_channel_number,
NULL,
&dwSizeChannel,
(PVOID*)&channel,
NULL);
我不知道在这里之后要做什么。任何帮助将不胜感激!检查后,我发现在调用WlanQueryInterface
操作码的MS文档似乎是错误的。如果您在这里尝试类似的操作:
<>之前ULONG *channel = NULL;DWORD dwSizeChannel = sizeof(*channel);DWORD rc = WlanQueryInterfacehClient InterfaceGuid,wlan_intf_opcode_channel_number,NULL, &dwSizeChannel, &channel, NULL);if (rc == ERROR_SUCCESS && channel) {printf ("Channel: %lun", * Channel):WlanFreeMemory(渠道);}之前我确实得到了预期的
通道:5。
同样适用于wlan_intf_opcode_current_operation_mode和其他简单的ULONG操作码。
我用文档中的输入尝试了WlanQueryInterface:https://msdn.microsoft.com/en-us/library/windows/desktop/ms706765 (v = vs.85) . aspx
当触发基于"wlan_intf_opcode_channel_number"的查询时,我得到的数据为"13"。从以下维基百科链接提供的WLAN信息中可以得出频率为2472Mhz:https://en.wikipedia.org/wiki/List_of_WLAN_channels
相关文章:
- 用于访问容器<T>数据成员的正确 API
- 如何使用Luacneneneba API正确读取字符串和表参数
- C++MySQL C api用户输入行
- 如何使用 AWS Transcribe C++ API 中的'StartTranscriptionJobRequest'?
- 将std::string传递给WriteConsole API
- EvtExportLogneneneba API正在将远程计算机的事件日志保存到远程PC本身.如何将其保存到主机
- 在gtest.中使用fff.h模拟系统API
- 有没有任务栏API可以立即应用注册表更改
- C++win32 API创建多个类似视口的窗口
- 使用libcurl提交批量url的正确BING Api POST url是什么
- 如何将真正的字符串从python c-api转换为python脚本
- 使用Qt框架在c ++类中创建API调用
- Libreoffice API (UNO):需要更改用户的 xTextField 文本
- 在AVX通道中混洗的最佳方式
- 在Arduino中将PWM通道命名为LEDC是否有特定原因
- 使用 WIN32 API (C/C++) 对特定树视图项进行着色
- 使用 V4L2 API 选择输入通道
- Win32音频API endpointVolume接口返回错误的通道计数
- ImageMagick c++ API获取图像通道
- 查找使用Windows API的通道