// bthddi.h
PFNBTHPORT_INDICATION_CALLBACK PfnbthportIndicationCallback;
void PfnbthportIndicationCallback(
[in] PVOID Context,
[in] INDICATION_CODE Indication,
[in] PINDICATION_PARAMETERS Parameters
)
{...}
View the official Windows Driver Kit DDI reference
No description available.
Profile drivers implement a L2CAP callback function to provide the Bluetooth driver stack with a mechanism to notify the profile driver about incoming L2CAP connection requests from remote devices, and any changes to the status of a currently open L2CAP connection.
Context
[in]For incoming remote connection request indications, this is the context specified by the profile driver in the IndicationCallbackContext member of the _BRB_L2CA_REGISTER_SERVER structure when the profile driver registered the callback function. For changes to existing L2CAP connections, this is the CallbackContext member specified by the profile driver when it built and sent a _BRB_L2CA_OPEN_CHANNEL BRB.
Indication
[in]An INDICATION_CODE value that indicates the type of L2CAP event.
Parameters
[in]An INDICATION_PARAMETERS structure that contains event-specific parameters.
A profile driver registers its L2CAP callback function in the following two scenarios:
After the profile driver registers its L2CAP callback function, the callback function is only associated with the channel that the BRB opened. The Bluetooth driver stack can call the L2CAP callback function to notify the profile driver of actions that occur over the open channel to the remote device. Profile drivers can register a single callback function to handle channel notifications as a client and connection notifications as a server.
The INDICATION_PARAMETERS structure held in the Parameters parameter is interpreted according to the value of the INDICATION_CODE enumeration that the Bluetooth driver stack passes to the profile driver's L2CAP callback function through the Indication parameter. For most notifications, there is an INDICATION_PARAMETERS union member that corresponds to the event and contains event-specific parameters.