Question

comment puis-je obtenir l'adresse MAC d'un périphérique Bluetooth qui connecté en tant que périphérique HID?

Je manipuler à l'appareil

Handle = CreateFile(didetail->DevicePath, 0, FILE_SHARE_READ|FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, NULL);

mais je ne peux pas trouver comment obtenir l'adresse MAC.

C ++; Windows

Était-ce utile?

La solution

Au début, j'allais dire que vous devriez tuyau les résultats de ipconfig / all dans un fichier, mais je trouve ceci:

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

Faites défiler jusqu'à mi-chemin GetAdaptersInfo, qui devrait être ce que vous cherchez.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top