开发者

How to get MAC address of bluetooth HID device?

开发者 https://www.devze.com 2022-12-25 03:36 出处:网络
how can I get the MAC address of a bluetooth device which connected as HID device? I have handle to the device

how can I get the MAC address of a bluetooth device which connected as HID device?

I have handle to the device

Handle = CreateFil开发者_如何学Goe(didetail->DevicePath, 0, FILE_SHARE_READ|FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, NULL);

but I can't find how to get the MAC address.

C++; Windows


At first I was going to say you should pipe the results of ipconfig/all into a file, but then I found this:

http://www.codeguru.com/cpp/i-n/network/networkinformation/article.php/c5451/Three-ways-to-get-your-MAC-address.htm

Scroll halfway down to GetAdaptersInfo, that should be what you're looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号