Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取作为 HID 设备连接的蓝牙设备的 MAC 地址?
我有设备的句柄
Handle = CreateFile(didetail->DevicePath, 0, FILE_SHARE_READ|FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, NULL);
但我找不到如何获取 MAC 地址。
C++;视窗
起初我想说你应该将 ipconfig/all 的结果通过管道传输到一个文件中,但后来我发现了这个:
http://www.codeguru.com/cpp/in/network/networkinformation/article.php/c5451/Three-ways-to-get-your-MAC-address.htm
向下滚动到 GetAdaptersInfo,这应该就是您要查找的内容。