Compartir a través de


IOCTL_AG_SET_USE_HF_AUDIO (Compact 2013)

3/26/2014

This I/O control message enables the phone application to auto-answer the call by using the hands-free device. Send this message with DeviceIoControl.

Syntax

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

Parameters

  • hDevice
    The handle to the device.
  • dwIoControlCode
    [in] Control code for the operation. Use IOCTL_AG_SET_USE_HF_AUDIO for this operation.
  • lpInBuffer
    [In] Pointer to a DWORD variable that specifies whether or not the auto-answer option is enabled. Set to TRUE to enable this option or FALSE to disable it.
  • nInBufferSize
    [in] Set to sizeof(DWORD).
  • lpOutBuffer
    [out] Not used; set to NULL.
  • nOutBufferSize
    [out] Not used; set to zero.
  • lpBytesReturned
    [out] Not used; set to NULL.
  • lpOverlapped
    [out] Not used; set to NULL.

Requirements

Header

btagpub.h

See Also

Reference

Bluetooth AG Service IOCTL Messages