2929import com .sun .jna .Union ;
3030import com .sun .jna .platform .win32 .WinBase .SYSTEMTIME ;
3131import com .sun .jna .platform .win32 .WinNT .HANDLE ;
32- import com .sun .jna .ptr . PointerByReference ;
32+ import com .sun .jna .platform . win32 . WinNT . HANDLEByReference ;
3333import com .sun .jna .win32 .StdCallLibrary ;
3434import com .sun .jna .win32 .W32APIOptions ;
3535
4141public interface BluetoothApis extends StdCallLibrary {
4242
4343 /** Instance of BluetoothApis. */
44- BluetoothApis INSTANCE = Native .load ("BluetoothApis" , BluetoothApis .class , W32APIOptions .DEFAULT_OPTIONS );
44+ BluetoothApis INSTANCE = Native .load ("BluetoothApis" , BluetoothApis .class , W32APIOptions .UNICODE_OPTIONS );
4545
4646 /** Maximum Bluetooth device name length. */
4747 int BLUETOOTH_MAX_NAME_SIZE = 248 ;
@@ -202,7 +202,7 @@ public BLUETOOTH_RADIO_INFO() {
202202 * @see <a href=
203203 * "https://learn.microsoft.com/en-us/windows/win32/api/bluetoothapis/nf-bluetoothapis-bluetoothfindfirstradio">BluetoothFindFirstRadio</a>
204204 */
205- HANDLE BluetoothFindFirstRadio (BLUETOOTH_FIND_RADIO_PARAMS pbtfrp , PointerByReference phRadio );
205+ HANDLE BluetoothFindFirstRadio (BLUETOOTH_FIND_RADIO_PARAMS pbtfrp , HANDLEByReference phRadio );
206206
207207 /**
208208 * Finds the next installed Bluetooth radio.
@@ -213,7 +213,7 @@ public BLUETOOTH_RADIO_INFO() {
213213 * @see <a href=
214214 * "https://learn.microsoft.com/en-us/windows/win32/api/bluetoothapis/nf-bluetoothapis-bluetoothfindnextradio">BluetoothFindNextRadio</a>
215215 */
216- boolean BluetoothFindNextRadio (HANDLE hFind , PointerByReference phRadio );
216+ boolean BluetoothFindNextRadio (HANDLE hFind , HANDLEByReference phRadio );
217217
218218 /**
219219 * Closes the enumeration handle for Bluetooth radios.
0 commit comments