IOCTL_BTH_SDP_DISCONNECT IOCTL (bthioctl.h)

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

Requirement Value
Minimum supported client 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