The IOCTL_BTH_SDP_DISCONNECT request closes a connection to a remote SDP server.
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 Length
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_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.|
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.
|Windows version||Versions:_Supported in Windows Vista, and later.|
|Header||bthioctl.h (include Bthioctl.h)|