Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

CPP: Detecting and Connecting Bluetooth Devices

Tags: char false
#include<windows.h>#include<bluetoothapis.h> #pragma comment(lib,"Bthprops.lib") #define pwd TEXT("012345") int WINAPI WinMain(HINSTANCE hI, HINSTANCE hPI, LPSTR lpCL, int iCS) { BLUETOOTH_DEVICE_SEARCH_PARAMS sp; sp.cTimeoutMultiplier = (UCHAR)(1.28*5); sp.dwSize=sizeof(sp); sp.fReturnAuthenticated = false; sp.fIssueInquiry = true; sp.fReturnConnected = true; sp.fReturnRemembered = false; sp.fReturnUnknown = true; sp.hRadio = NULL; BLUETOOTH_DEVICE_INFO di; di.dwSize = sizeof(di); HBLUETOOTH_DEVICE_FIND hB_DF = BluetoothFindFirstDevice(&amp;sp,&amp;di); if(hB_DF=NULL) MessageBox(0,"An Error Occured","Error",0); char* msg =new char; char* res = new char; for(int i=0; i</bluetoothapis.h></windows.h>


This post first appeared on TechScan99, please read the originial post: here

Share the post

CPP: Detecting and Connecting Bluetooth Devices

×

Subscribe to Techscan99

Get updates delivered right to your inbox!

Thank you for your subscription

×