Skip to content

Add BluetoothApis to c.s.j.p.win32#1725

Open
dbwiddis wants to merge 1 commit into
java-native-access:masterfrom
dbwiddis:add-bluetooth-apis
Open

Add BluetoothApis to c.s.j.p.win32#1725
dbwiddis wants to merge 1 commit into
java-native-access:masterfrom
dbwiddis:add-bluetooth-apis

Conversation

@dbwiddis
Copy link
Copy Markdown
Contributor

Adds mappings for the Windows Bluetooth API (BluetoothApis.dll) to enumerate Bluetooth radios and paired/connected devices.

Structs

  • BLUETOOTH_ADDRESS — Union with ullLong (BTH_ADDR) and rgBytes[6]
  • BLUETOOTH_DEVICE_INFO — Device name, address, CoD, connected/remembered/authenticated flags
  • BLUETOOTH_DEVICE_SEARCH_PARAMS — Search criteria for device enumeration
  • BLUETOOTH_FIND_RADIO_PARAMS — Radio enumeration parameters
  • BLUETOOTH_RADIO_INFO — Radio name, address, CoD, manufacturer

Functions

  • BluetoothFindFirstRadio / BluetoothFindNextRadio / BluetoothFindRadioClose
  • BluetoothGetRadioInfo
  • BluetoothFindFirstDevice / BluetoothFindNextDevice / BluetoothFindDeviceClose

Motivation

Used by OSHI for Bluetooth device enumeration (oshi/oshi#3255).

Add mappings for the Windows Bluetooth API (BluetoothApis.dll):
- BLUETOOTH_ADDRESS union (ullLong / rgBytes[6])
- BLUETOOTH_DEVICE_INFO struct
- BLUETOOTH_DEVICE_SEARCH_PARAMS struct
- BLUETOOTH_FIND_RADIO_PARAMS struct
- BLUETOOTH_RADIO_INFO struct
- BluetoothFindFirstRadio / BluetoothFindNextRadio / BluetoothFindRadioClose
- BluetoothGetRadioInfo
- BluetoothFindFirstDevice / BluetoothFindNextDevice / BluetoothFindDeviceClose
@dbwiddis dbwiddis force-pushed the add-bluetooth-apis branch from fe95cbd to da652b6 Compare May 17, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant