There are 2 small problems when using bluetooth api:
-in include\bthdef.h line 122 123 the same line is present 2 times, leading to a compilation error (DEFINE_GUID(GenericNetworkingServiceClass_UUID,0x00001201,0x0000,0x1000,0x80,0x00,0x00,0x80,0x5F,0x9B,0x34,0xFB);) Deleting one of these line just works
-in include\winsock2.h misses the following line #define NS_BTH (16), which makes it impossible to use bluetooth sockets. For this again, adding the missing define just works
I removed the duplicated PnPInformationServiceClass_UUID definition from bthdef.h in trunk, stable/v2.x, and stable/v3.x in the svn repository.
As for NS_BTH definition: winsock2.h and ws2bth.h from stable/v3.x and trunk do have it, although it seems you should define _WIN32_WINNT to 0x0600 or higher in order to use it from winsock2.h. As for stable/v2.x: I am not sure about it, but I might add it back to v2.x if required (although using v3.x headers is recommended these days, I guess..)