#include #pragma comment(lib,"Bthprops.lib")
int search_bluetooth_device()
{
BLUETOOTH_FIND_RADIO_PARAMS btfrp = { sizeof(btfrp) };
BLUETOOTH_DEVICE_SEARCH_PARAMS btdp = { sizeof(btdp) };
BLUETOOTH_DEVICE_INFO_STRUCT Devinfo;
BLUETOOTH_RADIO_INFO RadioInfo;
HANDLE hRadio;
char blueT_Name[256]={'\0'};
HBLUETOOTH_RADIO_FIND hFind_R ;
HBLUETOOTH_DEVICE_FIND hFind_D;
int blueCount = 0;
printf("Searching Local Bluetooth(s)...");
hFind_R = BluetoothFindFirstRadio(&btfrp,&hRadio);
if (NULL != hFind_R)
{
RadioInfo.dwSize = sizeof(RadioInfo);
do
{
printf(" Found!\n");
if( ERROR_SUCCESS == BluetoothGetRadioInfo(hRadio, &RadioInfo))
{
wcstombs(blueT_Name,Rad