// bthhfpddi.h
// CTL_CODE(0x0022, 0x005, METHOD_NEITHER, FILE_ANY_ACCESS)
#define IOCTL_BTHHFP_DEVICE_GET_CONNECTION_STATUS_UPDATE 0x00220017
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_BTHHFP_DEVICE_GET_CONNECTION_STATUS_UPDATE IOCTL Gets a connection status update.
A BOOL that is set to TRUE to request an immediate update. Otherwise, set this to FALSE.
The size of a BOOL.
A BOOL that is the new connection status. TRUE if connected. FALSE if not connected.
The size of a BOOL.
If a request is already pending the new request fails and a STATUS_INVALID_DEVICE_REQUEST message is returned.
This request will complete immediately if the input parameter is TRUE or if the connection status has changed since the last request. Otherwise this request will remain pending until the connection status changes or the request is cancelled.
The audio driver sends this request to get the initial connection status, and sends subsequent requests to be updated when the status changes. The driver stores the connection status in appropriate context data.
When the request completes and indicates a change in the connection status, the audio driver generates the KSEVENT_PINCAPS_JACKINFOCHANGE KS event.
When handling the KSPROPERTY_JACK_DESCRIPTION KS property, the audio driver sets the IsConnected member of the KSJACK_DESCRIPTION structure based on the connection status.
KSEVENT_PINCAPS_JACKINFOCHANGE