BluetoothGATTRegisterEvent function bluetooth

int BluetoothGATTRegisterEvent(
  1. int hService,
  2. int EventType,
  3. Pointer<NativeType> EventParameterIn,
  4. Pointer<NativeFunction<PFNBLUETOOTH_GATT_EVENT_CALLBACK>> Callback,
  5. Pointer<NativeType> CallbackContext,
  6. Pointer<IntPtr> pEventHandle,
  7. int Flags
)

Registers a routine to be called back during a characteristic value change event on the given characteristic identified by its characteristic handle.

HRESULT BluetoothGATTRegisterEvent(
  HANDLE                           hService,
  BTH_LE_GATT_EVENT_TYPE           EventType,
  PVOID                            EventParameterIn,
  PFNBLUETOOTH_GATT_EVENT_CALLBACK Callback,
  PVOID                            CallbackContext,
  BLUETOOTH_GATT_EVENT_HANDLE      *pEventHandle,
  ULONG                            Flags
);

Implementation

int BluetoothGATTRegisterEvent(
        int hService,
        int EventType,
        Pointer EventParameterIn,
        Pointer<NativeFunction<PFNBLUETOOTH_GATT_EVENT_CALLBACK>> Callback,
        Pointer CallbackContext,
        Pointer<IntPtr> pEventHandle,
        int Flags) =>
    _BluetoothGATTRegisterEvent(hService, EventType, EventParameterIn, Callback,
        CallbackContext, pEventHandle, Flags);