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<BLUETOOTH_DEVICE_INFO> pbtdi) int bluetooth
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<BLUETOOTH_DEVICE_INFO> pbtdi, Pointer<Uint32> pcServiceInout, Pointer<GUID> pGuidServices) int bluetooth
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<BLUETOOTH_DEVICE_SEARCH_PARAMS> pbtsp, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi) int bluetooth
The BluetoothFindFirstDevice function begins the enumeration Bluetooth devices.
BluetoothFindFirstRadio(Pointer<BLUETOOTH_FIND_RADIO_PARAMS> pbtfrp, Pointer<IntPtr> phRadio) int bluetooth
The BluetoothFindFirstRadio function begins the enumeration of local Bluetooth radios.
BluetoothFindNextDevice(int hFind, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi) int bluetooth
The BluetoothFindNextDevice function finds the next Bluetooth device.
BluetoothFindNextRadio(int hFind, Pointer<IntPtr> phRadio) int bluetooth
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<Uint64> ReliableWriteContext, int Flags) int bluetooth
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<BTH_LE_GATT_SERVICE> Service, int CharacteristicsBufferCount, Pointer<BTH_LE_GATT_CHARACTERISTIC> CharacteristicsBuffer, Pointer<Uint16> CharacteristicsBufferActual, int Flags) int bluetooth
Gets all the characteristics available for the specified service.
BluetoothGATTGetCharacteristicValue(int hDevice, Pointer<BTH_LE_GATT_CHARACTERISTIC> Characteristic, int CharacteristicValueDataSize, Pointer<BTH_LE_GATT_CHARACTERISTIC_VALUE> CharacteristicValue, Pointer<Uint16> CharacteristicValueSizeRequired, int Flags) int bluetooth
Gets the value of the specified characteristic.
BluetoothGATTGetDescriptors(int hDevice, Pointer<BTH_LE_GATT_CHARACTERISTIC> Characteristic, int DescriptorsBufferCount, Pointer<BTH_LE_GATT_DESCRIPTOR> DescriptorsBuffer, Pointer<Uint16> DescriptorsBufferActual, int Flags) int bluetooth
Gets all the descriptors available for the specified characteristic.
BluetoothGATTGetDescriptorValue(int hDevice, Pointer<BTH_LE_GATT_DESCRIPTOR> Descriptor, int DescriptorValueDataSize, Pointer<BTH_LE_GATT_DESCRIPTOR_VALUE> DescriptorValue, Pointer<Uint16> DescriptorValueSizeRequired, int Flags) int bluetooth
Gets the value of the specified descriptor.
BluetoothGATTGetIncludedServices(int hDevice, Pointer<BTH_LE_GATT_SERVICE> ParentService, int IncludedServicesBufferCount, Pointer<BTH_LE_GATT_SERVICE> IncludedServicesBuffer, Pointer<Uint16> IncludedServicesBufferActual, int Flags) int bluetooth
Gets all the included services available for a given service.
BluetoothGATTGetServices(int hDevice, int ServicesBufferCount, Pointer<BTH_LE_GATT_SERVICE> ServicesBuffer, Pointer<Uint16> ServicesBufferActual, int Flags) int bluetooth
The BluetoothGATTGetServices function gets all the primary services available for a server.
BluetoothGATTRegisterEvent(int hService, int EventType, Pointer<NativeType> EventParameterIn, Pointer<NativeFunction<PfnbluetoothGattEventCallback>> Callback, Pointer<NativeType> CallbackContext, Pointer<IntPtr> pEventHandle, int Flags) int bluetooth
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<BTH_LE_GATT_CHARACTERISTIC> Characteristic, Pointer<BTH_LE_GATT_CHARACTERISTIC_VALUE> CharacteristicValue, int ReliableWriteContext, int Flags) int bluetooth
Writes the specified characteristic value to the Bluetooth device.
BluetoothGATTSetDescriptorValue(int hDevice, Pointer<BTH_LE_GATT_DESCRIPTOR> Descriptor, Pointer<BTH_LE_GATT_DESCRIPTOR_VALUE> DescriptorValue, int Flags) int bluetooth
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<BLUETOOTH_RADIO_INFO> pRadioInfo) int bluetooth
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<BLUETOOTH_DEVICE_INFO> pbtdiIn, Pointer<IntPtr> phRegHandleOut, Pointer<NativeFunction<PfnAuthenticationCallbackEx>> pfnCallbackIn, Pointer<NativeType> pvParam) int bluetooth
The BluetoothRegisterForAuthenticationEx function registers an application for a pin request, numeric comparison and callback function.
BluetoothRemoveDevice(Pointer<BLUETOOTH_ADDRESS> pAddress) int bluetooth
The BluetoothRemoveDevice function removes authentication between a Bluetooth device and the computer and clears cached service information for the device.
BluetoothSetServiceState(int hRadio, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi, Pointer<GUID> pGuidService, int dwServiceFlags) int bluetooth
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<BLUETOOTH_DEVICE_INFO> pbtdi) int bluetooth
The BluetoothUpdateDeviceRecord function updates the local computer cache about a Bluetooth device.