#include#include #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(&sp,&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
This post first appeared on
TechScan99, please read the originial post:
here