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<PFNBLUETOOTH_GATT_EVENT_CALLBACK>> 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.
BluetoothGetDeviceInfo(int hRadio, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi) int bluetooth
TThe BluetoothGetDeviceInfo function retrieves information about a remote Bluetooth device. The Bluetooth device must have been previously identified through a successful device inquiry function call.
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<PFN_AUTHENTICATION_CALLBACK_EX>> 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.
BluetoothSdpEnumAttributes(Pointer<Uint8> pSDPStream, int cbStreamSize, Pointer<NativeFunction<PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK>> pfnCallback, Pointer<NativeType> pvParam) int bluetooth
The BluetoothSdpEnumAttributes function enumerates through the SDP record stream, and calls the callback function for each attribute in the record.
BluetoothSdpGetAttributeValue(Pointer<Uint8> pRecordStream, int cbRecordLength, int usAttributeId, Pointer<SDP_ELEMENT_DATA> pAttributeData) int bluetooth
The BluetoothSdpGetAttributeValue function retrieves the attribute value for an attribute identifier.
BluetoothSdpGetContainerElementData(Pointer<Uint8> pContainerStream, int cbContainerLength, Pointer<IntPtr> pElement, Pointer<SDP_ELEMENT_DATA> pData) int bluetooth
The BluetoothSdpGetContainerElementData function iterates a container stream and returns each element contained within the container element.
BluetoothSdpGetElementData(Pointer<Uint8> pSdpStream, int cbSdpStreamLength, Pointer<SDP_ELEMENT_DATA> pData) int bluetooth
The BluetoothSdpGetElementData function retrieves and parses a single element from an SDP stream.
BluetoothSdpGetString(Pointer<Uint8> pRecordStream, int cbRecordLength, Pointer<SDP_STRING_TYPE_DATA> pStringData, int usStringOffset, Pointer<Utf16> pszString, Pointer<Uint32> pcchStringLength) int bluetooth
The BluetoothSdpGetString function converts a raw string embedded in the SDP record into a Unicode string.
BluetoothSelectDevices(Pointer<BLUETOOTH_SELECT_DEVICE_PARAMS> pbtsdp) int bluetooth
The BluetoothSelectDevices function enables Bluetooth device selection.
BluetoothSelectDevicesFree(Pointer<BLUETOOTH_SELECT_DEVICE_PARAMS> pbtsdp) int bluetooth
The BluetoothSelectDevicesFree function frees resources associated with a previous call to BluetoothSelectDevices.
BluetoothSendAuthenticationResponseEx(int hRadioIn, Pointer<BLUETOOTH_AUTHENTICATE_RESPONSE> pauthResponse) int bluetooth
The BluetoothSendAuthenticationResponseEx function is called when an authentication request to send the passkey or a Numeric Comparison response is made.
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.