bluetooth topic
Bluetooth Library
Bluetooth is an industry-standard protocol that enables wireless connectivity for computers, handheld devices, mobile phones, and other devices. The Bluetooth application programming interface enables developers to use existing network programming knowledge to quickly develop or port applications.
Functions
-
BluetoothDisplayDeviceProperties(
int hwndParent, Pointer< bluetoothBLUETOOTH_DEVICE_INFO> pbtdi) → int - The BluetoothDisplayDeviceProperties function opens the Control Panel device information property sheet.
-
BluetoothEnableDiscovery(
int hRadio, int fEnabled) → int bluetooth - The BluetoothEnableDiscovery function changes the discovery state of a local Bluetooth radio or radios.
-
BluetoothEnableIncomingConnections(
int hRadio, int fEnabled) → int bluetooth - The BluetoothEnableIncomingConnections function modifies whether a local Bluetooth radio accepts incoming connections.
-
BluetoothEnumerateInstalledServices(
int hRadio, Pointer< bluetoothBLUETOOTH_DEVICE_INFO> pbtdi, Pointer<Uint32> pcServiceInout, Pointer<GUID> pGuidServices) → int - The BluetoothEnumerateInstalledServices function enumerates the services GUIDs (Globally Unique Identifiers) enabled on a Bluetooth device.
-
BluetoothFindDeviceClose(
int hFind) → int bluetooth - The BluetoothFindDeviceClose function closes an enumeration handle associated with a device query.
-
BluetoothFindFirstDevice(
Pointer< bluetoothBLUETOOTH_DEVICE_SEARCH_PARAMS> pbtsp, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi) → int - The BluetoothFindFirstDevice function begins the enumeration Bluetooth devices.
-
BluetoothFindFirstRadio(
Pointer< bluetoothBLUETOOTH_FIND_RADIO_PARAMS> pbtfrp, Pointer<IntPtr> phRadio) → int - The BluetoothFindFirstRadio function begins the enumeration of local Bluetooth radios.
-
BluetoothFindNextDevice(
int hFind, Pointer< bluetoothBLUETOOTH_DEVICE_INFO> pbtdi) → int - The BluetoothFindNextDevice function finds the next Bluetooth device.
-
BluetoothFindNextRadio(
int hFind, Pointer< bluetoothIntPtr> phRadio) → int - The BluetoothFindNextRadio function finds the next Bluetooth radio.
-
BluetoothFindRadioClose(
int hFind) → int bluetooth - The BluetoothFindRadioClose function closes the enumeration handle associated with finding Bluetooth radios.
-
BluetoothGATTAbortReliableWrite(
int hDevice, int ReliableWriteContext, int Flags) → int bluetooth - Specifies the end of reliable write procedures, and the writes should be aborted.
-
BluetoothGATTBeginReliableWrite(
int hDevice, Pointer< bluetoothUint64> ReliableWriteContext, int Flags) → int - The BluetoothGATTBeginReliableWrite function specifies that reliable writes are about to begin.
-
BluetoothGATTEndReliableWrite(
int hDevice, int ReliableWriteContext, int Flags) → int bluetooth - Specifies the end of reliable writes, and the writes should be committed.
-
BluetoothGATTGetCharacteristics(
int hDevice, Pointer< bluetoothBTH_LE_GATT_SERVICE> Service, int CharacteristicsBufferCount, Pointer<BTH_LE_GATT_CHARACTERISTIC> CharacteristicsBuffer, Pointer<Uint16> CharacteristicsBufferActual, int Flags) → int - Gets all the characteristics available for the specified service.
-
BluetoothGATTGetCharacteristicValue(
int hDevice, Pointer< bluetoothBTH_LE_GATT_CHARACTERISTIC> Characteristic, int CharacteristicValueDataSize, Pointer<BTH_LE_GATT_CHARACTERISTIC_VALUE> CharacteristicValue, Pointer<Uint16> CharacteristicValueSizeRequired, int Flags) → int - Gets the value of the specified characteristic.
-
BluetoothGATTGetDescriptors(
int hDevice, Pointer< bluetoothBTH_LE_GATT_CHARACTERISTIC> Characteristic, int DescriptorsBufferCount, Pointer<BTH_LE_GATT_DESCRIPTOR> DescriptorsBuffer, Pointer<Uint16> DescriptorsBufferActual, int Flags) → int - Gets all the descriptors available for the specified characteristic.
-
BluetoothGATTGetDescriptorValue(
int hDevice, Pointer< bluetoothBTH_LE_GATT_DESCRIPTOR> Descriptor, int DescriptorValueDataSize, Pointer<BTH_LE_GATT_DESCRIPTOR_VALUE> DescriptorValue, Pointer<Uint16> DescriptorValueSizeRequired, int Flags) → int - Gets the value of the specified descriptor.
-
BluetoothGATTGetIncludedServices(
int hDevice, Pointer< bluetoothBTH_LE_GATT_SERVICE> ParentService, int IncludedServicesBufferCount, Pointer<BTH_LE_GATT_SERVICE> IncludedServicesBuffer, Pointer<Uint16> IncludedServicesBufferActual, int Flags) → int - Gets all the included services available for a given service.
-
BluetoothGATTGetServices(
int hDevice, int ServicesBufferCount, Pointer< bluetoothBTH_LE_GATT_SERVICE> ServicesBuffer, Pointer<Uint16> ServicesBufferActual, int Flags) → int - The BluetoothGATTGetServices function gets all the primary services available for a server.
-
BluetoothGATTRegisterEvent(
int hService, int EventType, Pointer< bluetoothNativeType> EventParameterIn, Pointer<NativeFunction< Callback, Pointer<PfnbluetoothGattEventCallback> >NativeType> CallbackContext, Pointer<IntPtr> pEventHandle, int Flags) → int - Registers a routine to be called back during a characteristic value change event on the given characteristic identified by its characteristic handle.
-
BluetoothGATTSetCharacteristicValue(
int hDevice, Pointer< bluetoothBTH_LE_GATT_CHARACTERISTIC> Characteristic, Pointer<BTH_LE_GATT_CHARACTERISTIC_VALUE> CharacteristicValue, int ReliableWriteContext, int Flags) → int - Writes the specified characteristic value to the Bluetooth device.
-
BluetoothGATTSetDescriptorValue(
int hDevice, Pointer< bluetoothBTH_LE_GATT_DESCRIPTOR> Descriptor, Pointer<BTH_LE_GATT_DESCRIPTOR_VALUE> DescriptorValue, int Flags) → int - Writes the specified descriptor value to the Bluetooth device.
-
BluetoothGATTUnregisterEvent(
int EventHandle, int Flags) → int bluetooth - Unregisters the given characteristic value change event.
-
BluetoothGetRadioInfo(
int hRadio, Pointer< bluetoothBLUETOOTH_RADIO_INFO> pRadioInfo) → int - The BluetoothGetRadioInfo function obtains information about a Bluetooth radio.
-
BluetoothIsConnectable(
int hRadio) → int bluetooth - The BluetoothIsConnectable function determines whether a Bluetooth radio or radios is connectable.
-
BluetoothIsDiscoverable(
int hRadio) → int bluetooth - The BluetoothIsDiscoverable function determines whether a Bluetooth radio or radios is discoverable.
-
BluetoothIsVersionAvailable(
int MajorVersion, int MinorVersion) → int bluetooth - The BluetoothIsVersionAvailable function indicates if the installed Bluetooth binary set supports the requested version.
-
BluetoothRegisterForAuthenticationEx(
Pointer< bluetoothBLUETOOTH_DEVICE_INFO> pbtdiIn, Pointer<IntPtr> phRegHandleOut, Pointer<NativeFunction< pfnCallbackIn, Pointer<PfnAuthenticationCallbackEx> >NativeType> pvParam) → int - The BluetoothRegisterForAuthenticationEx function registers an application for a pin request, numeric comparison and callback function.
-
BluetoothRemoveDevice(
Pointer< bluetoothBLUETOOTH_ADDRESS> pAddress) → int - The BluetoothRemoveDevice function removes authentication between a Bluetooth device and the computer and clears cached service information for the device.
-
BluetoothSetServiceState(
int hRadio, Pointer< bluetoothBLUETOOTH_DEVICE_INFO> pbtdi, Pointer<GUID> pGuidService, int dwServiceFlags) → int - The BluetoothSetServiceState function enables or disables services for a Bluetooth device.
-
BluetoothUnregisterAuthentication(
int hRegHandle) → int bluetooth - The BluetoothUnregisterAuthentication function removes registration for a callback routine that was previously registered with a call to the BluetoothRegisterForAuthentication function.
-
BluetoothUpdateDeviceRecord(
Pointer< bluetoothBLUETOOTH_DEVICE_INFO> pbtdi) → int - The BluetoothUpdateDeviceRecord function updates the local computer cache about a Bluetooth device.