Share via


WODM_BT_SCO_AUDIO_CONTROL (Compact 2013)

3/26/2014

This I/O control message is sent by the Audio Gateway Service and received by the waveform output driver to route audio. Send this message with WAV_IOControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hDevice,           // handle to device
    DWORD dwIoControlCode,    // use WODM_BT_SCO_AUDIO_CONTROL
    PBYTE lpInBuffer,         // pointer to input buffer
    DWORD nInBufferSize,      // input buffer size
    PBYTE lpOutBuffer,        // pointer to output buffer
    DWORD nOutBufferSize,     // output buffer size
    LPDWORD lpBytesReturned   // number of bytes returned
);

Parameters

  • hDevice
    [in] Device handle - 0, 1, 2, and so on - for the target device.
  • dwIoControlCode
    [in] Control code for the operation. Use WODM_BT_SCO_AUDIO_CONTROL for this operation.
  • lpInBuffer
    [in] Not used; set to NULL.
  • nInBufferSize
    [in] Device instance identifier.
  • lpOutBuffer
    [out] Not used; set to NULL.
  • nOutBufferSize
    [out] Not used; set to zero.
  • lpBytesReturned
    Routing. TRUE to send audio to the Bluetooth device and FALSE to send audio to the default source.

Return Values

MMSYSERR_NOERROR indicates success. Otherwise, the driver returns one of the MMSYSERR or WAVEERR error values declared in the Mmsystem.h header file.

Remarks

This message is used in an MMDRV_MESSAGE_PARAMS structure passed to the WAV_IOControl function to route audio to the Bluetooth chip.

Requirements

Header

bt_ddi.h

See Also

Reference

Bluetooth AG Service IOCTL Messages