IOCTL_BTH_SDP_DISCONNECT IOCTL

The IOCTL_BTH_SDP_DISCONNECT request closes a connection to a remote SDP server.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

The AssociatedIrp.SystemBuffer member contains an BTH_SDP_DISCONNECT structure that specifies the connection handle to the remote SDP connection to terminate.

Input Buffer Length

Length of an BTH_SDP_DISCONNECT structure.

Output Buffer

None.

Output Buffer Length

None.

Status Block

The Information member of the STATUS_BLOCK structure is set to zero.

The Status member is set to one of the values in the following table.

Status value Description
STATUS_SUCCESS The IOCTL completed successfully.
STATUS_DEVICE_NOT_CONNECTED The specified SDP server has already been disconnected.
STATUS_INVALID_PARAMETER The connection handle passed in the input buffer is invalid.

Remarks

Callers of IOCTL_BTH_SDP_CONNECT must issue an IOCTL_BTH_SDP_DISCONNECT IOCTL when the SDP connection is no longer needed. After IOCTL_BTH_SDP_DISCONNECT is called, the specified SDP handle is no longer valid.

Requirements

   
Windows version Versions:_Supported in Windows Vista, and later.
Header bthioctl.h (include Bthioctl.h)
IRQL "<= PASSIVE_LEVEL"

See Also

BTH_SDP_DISCONNECT

IOCTL_BTH_SDP_CONNECT