Interface BluetoothApis
- All Superinterfaces:
AltCallingConvention, Library, StdCall, StdCallLibrary
Provides mappings for the Windows Bluetooth API functions from
BluetoothApis.dll.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classTheBLUETOOTH_ADDRESSstructure provides the address of a Bluetooth device.static classTheBLUETOOTH_DEVICE_INFOstructure provides information about a Bluetooth device.static classTheBLUETOOTH_DEVICE_SEARCH_PARAMSstructure specifies search criteria for Bluetooth device searches.static classTheBLUETOOTH_FIND_RADIO_PARAMSstructure facilitates the enumeration of installed Bluetooth radios.static classTheBLUETOOTH_RADIO_INFOstructure contains information about a Bluetooth radio.Nested classes/interfaces inherited from interface Library
Library.HandlerNested classes/interfaces inherited from interface StdCallLibrary
StdCallLibrary.StdCallCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum Bluetooth device name length.static final BluetoothApisInstance of BluetoothApis.Fields inherited from interface Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPERFields inherited from interface StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION -
Method Summary
Modifier and TypeMethodDescriptionbooleanCloses the enumeration handle for Bluetooth devices.BluetoothFindFirstDevice(BluetoothApis.BLUETOOTH_DEVICE_SEARCH_PARAMS pbtsp, BluetoothApis.BLUETOOTH_DEVICE_INFO pbtdi) Begins the enumeration of Bluetooth devices.BluetoothFindFirstRadio(BluetoothApis.BLUETOOTH_FIND_RADIO_PARAMS pbtfrp, WinNT.HANDLEByReference phRadio) Finds the first Bluetooth radio installed on the system.booleanFinds the next Bluetooth device.booleanBluetoothFindNextRadio(WinNT.HANDLE hFind, WinNT.HANDLEByReference phRadio) Finds the next installed Bluetooth radio.booleanCloses the enumeration handle for Bluetooth radios.intBluetoothGetRadioInfo(WinNT.HANDLE hRadio, BluetoothApis.BLUETOOTH_RADIO_INFO pRadioInfo) Retrieves information about a Bluetooth radio.
-
Field Details
-
INSTANCE
Instance of BluetoothApis. -
BLUETOOTH_MAX_NAME_SIZE
static final int BLUETOOTH_MAX_NAME_SIZEMaximum Bluetooth device name length.- See Also:
-
-
Method Details
-
BluetoothFindFirstRadio
WinNT.HANDLE BluetoothFindFirstRadio(BluetoothApis.BLUETOOTH_FIND_RADIO_PARAMS pbtfrp, WinNT.HANDLEByReference phRadio) Finds the first Bluetooth radio installed on the system.- Parameters:
pbtfrp- A pointer to aBluetoothApis.BLUETOOTH_FIND_RADIO_PARAMSstructure.phRadio- A pointer that receives the handle of the first radio found.- Returns:
- A handle to use with
BluetoothFindNextRadio(WinNT.HANDLE, WinNT.HANDLEByReference)andBluetoothFindRadioClose(WinNT.HANDLE), ornullon failure. CallGetLastErrorfor error information. - See Also:
-
BluetoothFindNextRadio
Finds the next installed Bluetooth radio.- Parameters:
hFind- The handle returned byBluetoothFindFirstRadio(BluetoothApis.BLUETOOTH_FIND_RADIO_PARAMS, WinNT.HANDLEByReference).phRadio- A pointer that receives the handle of the next radio found.- Returns:
trueif another radio was found,falseotherwise.- See Also:
-
BluetoothFindRadioClose
Closes the enumeration handle for Bluetooth radios.- Parameters:
hFind- The handle returned byBluetoothFindFirstRadio(BluetoothApis.BLUETOOTH_FIND_RADIO_PARAMS, WinNT.HANDLEByReference).- Returns:
trueon success,falseon failure.- See Also:
-
BluetoothGetRadioInfo
Retrieves information about a Bluetooth radio.- Parameters:
hRadio- A handle to the Bluetooth radio obtained fromBluetoothFindFirstRadio(BluetoothApis.BLUETOOTH_FIND_RADIO_PARAMS, WinNT.HANDLEByReference).pRadioInfo- A pointer to aBluetoothApis.BLUETOOTH_RADIO_INFOstructure to receive the radio information.- Returns:
ERROR_SUCCESS(0) on success, or an error code on failure.- See Also:
-
BluetoothFindFirstDevice
WinNT.HANDLE BluetoothFindFirstDevice(BluetoothApis.BLUETOOTH_DEVICE_SEARCH_PARAMS pbtsp, BluetoothApis.BLUETOOTH_DEVICE_INFO pbtdi) Begins the enumeration of Bluetooth devices.- Parameters:
pbtsp- A pointer to aBluetoothApis.BLUETOOTH_DEVICE_SEARCH_PARAMSstructure specifying search criteria.pbtdi- A pointer to aBluetoothApis.BLUETOOTH_DEVICE_INFOstructure to receive the first device found.- Returns:
- A handle to use with
BluetoothFindNextDevice(WinNT.HANDLE, BluetoothApis.BLUETOOTH_DEVICE_INFO)andBluetoothFindDeviceClose(WinNT.HANDLE), ornullif no devices are found. - See Also:
-
BluetoothFindNextDevice
Finds the next Bluetooth device.- Parameters:
hFind- The handle returned byBluetoothFindFirstDevice(BluetoothApis.BLUETOOTH_DEVICE_SEARCH_PARAMS, BluetoothApis.BLUETOOTH_DEVICE_INFO).pbtdi- A pointer to aBluetoothApis.BLUETOOTH_DEVICE_INFOstructure to receive the next device found.- Returns:
trueif another device was found,falseotherwise.- See Also:
-
BluetoothFindDeviceClose
Closes the enumeration handle for Bluetooth devices.- Parameters:
hFind- The handle returned byBluetoothFindFirstDevice(BluetoothApis.BLUETOOTH_DEVICE_SEARCH_PARAMS, BluetoothApis.BLUETOOTH_DEVICE_INFO).- Returns:
trueon success,falseon failure.- See Also:
-