// bthhfpddi.h
// CTL_CODE(0x0022, 0x00f, METHOD_NEITHER, FILE_ANY_ACCESS)
#define IOCTL_BTHHFP_DEVICE_GET_CODEC_ID 0x0022003F
View the official Windows Driver Kit DDI referenceNo description available.
An audio driver can send an IOCTL_BTHHFP_DEVICE_GET_CODEC_ID control code to query the Bluetooth driver stack about the codec ID used by the HFP service. This helps the audio driver determine the sampling rate for the data.
An HFP_BYPASS_CODEC_ID_VERSION enumeration value. Currently, only REQ_HFP_BYPASS_CODEC_ID_V1 is supported.
The size of an HFP_BYPASS_CODEC_ID_VERSION enumeration value.
A codec ID structure containing the codec ID information. Currently, only HFP_BYPASS_CODEC_ID_V1 is supported.
The size of a codec ID structure.
If the routine succeeds, then Status is set to STATUS_SUCCESS and the Information member is the codec ID.