The first parameter is defined as const BLUETOOTH_DEVICE_INFO in MSDN and bluetoothapis.h.
https://learn.microsoft.com/en-us/windows/win32/api/bluetoothapis/nf-bluetoo...
From: Mohamad Al-Jaf mohamadaljaf@gmail.com
The first parameter is defined as const BLUETOOTH_DEVICE_INFO in MSDN and bluetoothapis.h. --- include/bluetoothapis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/bluetoothapis.h b/include/bluetoothapis.h index 1942513fab3..d3b5c941b7c 100644 --- a/include/bluetoothapis.h +++ b/include/bluetoothapis.h @@ -225,7 +225,7 @@ DWORD WINAPI BluetoothGetDeviceInfo(HANDLE, BLUETOOTH_DEVICE_INFO *); DWORD WINAPI BluetoothGetRadioInfo(HANDLE, PBLUETOOTH_RADIO_INFO); BOOL WINAPI BluetoothIsConnectable(HANDLE); BOOL WINAPI BluetoothIsDiscoverable(HANDLE); -DWORD WINAPI BluetoothRegisterForAuthentication(BLUETOOTH_DEVICE_INFO *, HBLUETOOTH_AUTHENTICATION_REGISTRATION *, PFN_AUTHENTICATION_CALLBACK, void *); +DWORD WINAPI BluetoothRegisterForAuthentication(const BLUETOOTH_DEVICE_INFO *, HBLUETOOTH_AUTHENTICATION_REGISTRATION *, PFN_AUTHENTICATION_CALLBACK, void *); DWORD WINAPI BluetoothRegisterForAuthenticationEx(const BLUETOOTH_DEVICE_INFO *, HBLUETOOTH_AUTHENTICATION_REGISTRATION *, PFN_AUTHENTICATION_CALLBACK_EX, void *); DWORD WINAPI BluetoothRemoveDevice(BLUETOOTH_ADDRESS *); #define BluetoothEnumAttributes BluetoothSdpEnumAttributes