Edit

Share via


_BRB_L2CA_CLOSE_CHANNEL structure (bthddi.h)

The _BRB_L2CA_CLOSE_CHANNEL structure describes an open L2CAP channel to close.

Syntax

struct _BRB_L2CA_CLOSE_CHANNEL {
  BRB_HEADER           Hdr;
  BTH_ADDR             BtAddress;
  L2CAP_CHANNEL_HANDLE ChannelHandle;
};

Members

Hdr

A BRB_HEADER structure that contains information about the current BRB.

BtAddress

The address of the remote device.

ChannelHandle

The L2CAP channel handle that was returned by Bluetooth driver stack in response to an earlier BRB_L2CA_OPEN_CHANNEL or BRB_L2CA_OPEN_CHANNEL_RESPONSE request. This is the channel handle to close.

Remarks

To close a L2CAP channel, profile drivers should build and send a BRB_L2CA_CLOSE_CHANNEL request.

A BRB_L2CA_CLOSE_CHANNEL request can be made for a channel that was initiated locally or remotely. If a profile driver has multiple L2CAP channels to a single remote device, it must close each one individually.

Requirements

Requirement Value
Minimum supported client Versions:_Supported in Windows Vista, and later.
Header bthddi.h (include Bthddi.h)

See also

BRB_HEADER

BRB_L2CA_CLOSE_CHANNEL

BRB_L2CA_OPEN_CHANNEL

BRB_L2CA_OPEN_CHANNEL_RESPONSE