I am interested in the following question: does Windows7 (Microsoft bluetooth stack) have an identifier of device-supported profiles (A2DP, HFP, OPP etc) in numerical form: meaning, if the service is supported, the corresponding flags are set in the corresponding positions (1 or 0). And if there is, what is the easiest way to access it?
1 answer
I never did it myself, but apparently you need to use functions like WSALookupService (Begin / Next / End) (http://msdn.microsoft.com/en-us/library/aa362914(v=vs.85).aspx) and then parse the Nth number of WSAQUERYSET structures.
- This method is bad, firstly, with a huge WSALookupService execution time (even for one service, you need to send requests to the device), and secondly, the complexity of processing results and their redundancy - EVGEN
|