HI!
Im trying to comunicating width my bluetooth usb divice.
After register the GUID, (information on inf file),
At this time, i can receive in my winproc a DBT_DEVICEARRIVAL: message.
In lParam the DBT_DEVTYP_DEVICEINTERFACE
width devInterface->dbcc_classguid== my register GUID IVT_BLUETOOTH.
Now, im trying to get all informatiom from device, and all works god,
just at :
DeviceHandle=CreateFile(detailData->DevicePath,0,FILE_SHARE_READ| FILE_SHARE_WRITE,
&SecurityAttributes,OPEN_EXISTING,FILE_ATTRIBUTE_N ORMAL,NULL);
DisplayLastError("CreateFile: ");
Attributes.Size = sizeof(Attributes);
after that, i have a error message 'Invalid parameter'.
I think the invalid parameter is DeviceHandle, but i dont now why.
HidD_GetAttributes(DeviceHandle,&Attributes);
DisplayLastError("HidD_GetAttributes: ");
sprintf(Buf,"0x%x",Attributes.VendorID);
_editVendorID.SetText(Buf);
sprintf(Buf,"0x%x",Attributes.ProductID);
_editProductID.SetText(Buf);
HidD_GetManufacturerString(DeviceHandle, Buffer, 126);
DisplayLastError("HidD_GetManufacturerString: ");
sprintf(Buf,"%ws",Buffer);
_editManufacturer.SetText(Buf);
HidD_GetProductString(DeviceHandle,Buffer,126);
DisplayLastError("HidD_GetProductString: ");
sprintf(Buf,"%ws",Buffer);
_editName.SetText(Buf);
Can you show me the way?
thanks in advance.

