IOCTL_AG_CLOSE_AUDIO (Windows Embedded CE 6.0)
1/6/2010
This IOCTL closes the currently open audio connection to the headset or the hands-free device.
Note
IOCTL_AG_CLOSE_AUDIO does not close the currently open service level connection. To close it, use IOCTL_AG_CLOSE_CONTROL.
Parameters
- hDeviceContext
[in] Device context handle.
- fSelector
[in] Equals IOCTL_AG_CLOSE_AUDIO.
- cInBuffer
Not used.
- pInBuffer
Not used.
- cOutBuffer
Not used.
- pOutBuffer
Not used.
- pcDataReturned
Not used.
Return Values
Returns TRUE if successful, FALSE otherwise. To obtain extended error information, call the GetLastError function.
Remarks
This IOCTL sends the WODM_BT_SCO_AUDIO_CONTROL message to the audio driver to disable audio routing. Other AG service IOCTLs do not communicate with the audio driver.
To open an audio connection to the headset or the hands-free device, use the IOCTL_AG_OPEN_AUDIO IOCTL.
To route audio to the headset or to the hands-free device independent of the Network Component, you must first open or close an audio connection.
Requirements
Header | btagpub.h |
Windows Embedded CE | Windows CE 5.0 and later |