Share via


BTH_HCI_IOCTL_GET_SCO_PARAMETERS (Windows Embedded CE 6.0)

1/6/2010

This IOCTL retrieves information about a SCO connection in the GetScoParameters structure.

Parameters

  • hDeviceContext
    [in] Device context handle.
  • fSelector
    [in] Equals BTH_HCI_IOCTL_GET_SCO_PARAMETERS.
  • cInBuffer
    Not used.
  • pInBuffer
    Not used.
  • cOutBuffer
    Equals the size of GetScoParameters.
  • pOutBuffer
    [out] Points to GetScoParameters.
  • pcDataReturned
    [out] Not used.

Return Values

If the call succeeds, the return value is ERROR_SUCCESS.

If the function fails, the following table shows a list of possible error values.

Error value Description

ERROR_INVALID_PARAMETER

Parameters are invalid (buffers are not properly sized).

ERROR_SERVICE_NOT_ACTIVE

HCI is not active or there is no hardware.

Remarks

You must define GetScoParameters to store data returned by BTH_HCI_IOCTL_GET_SCO_PARAMETERS. The structure must be defined as follows.

struct {
  OUT BOOL  bScoSupported;  // Determines if SCO is supported.
  OUT DWORD dwScoPacketMaxDataSize;  // Stores the maximum SCO packet size
  OUT DWORD dwNumConcurrentScoPackets;  // Stores the number of concurrent 
                                        //SCO packets, which can be 
                                        //outstanding.
} GetScoParameters;

Requirements

Header bt_ddi.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Bluetooth Stack Extension Layer IOCTLs