BluetoothGATTUnregisterEvent function (bluetoothleapis.h)

The BluetoothGATTUnregisterEvent function unregisters the given characteristic value change event.

Syntax

HRESULT BluetoothGATTUnregisterEvent(
  [in] BLUETOOTH_GATT_EVENT_HANDLE EventHandle,
  [in] ULONG                       Flags
);

Parameters

[in] EventHandle

Handle returned from a previous call to BluetoothGATTRegisterEvent.

[in] Flags

Flags to modify the behavior of BluetoothGATTUnregisterEvent:

Flag Description
BLUETOOTH_GATT_FLAG_NONE The client does not have specific GATT requirements (default).

Return value

BluetoothGATTUnregisterEvent returns the following values:

Return code Description
S_OK
The operation completed successfully.
ERROR_ACCESS_DENIED
Returned if both a parent service and a service handle are provided and the service hierarchy does not roll up to the provided parent service handle.
ERROR_INVALID_PARAMETER
A parameter was invalid.

Requirements

Requirement Value
Minimum supported client Supported in Windows 8 and later versions of Windows.
Target Platform Universal
Header bluetoothleapis.h
Library BluetoothAPIs.lib
DLL BluetoothAPIs.dll

See also

BluetoothGATTRegisterEvent