IOCTL_BTH_SDP_REMOVE_RECORD control code

The IOCTL_BTH_SDP_REMOVE_RECORD request removes a local SDP record that the profile driver previously submitted. The local server will no longer offer this record to remote devices.

Input Parameters

The AssociatedIrp.SystemBuffer member contains an SDP connection handle from which to remove the SDP record. This must be a handle returned from a call to IOCTL_BTH_SDP_SUBMIT_RECORD or IOCTL_BTH_SDP_SUBMIT_RECORD_WITH_INFO. Handles from other sources are invalid in this context.

Output Parameters

None

I/O 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 valueDescription

STATUS_SUCCESS

The IOCTL completed successfully.

STATUS_DEVICE_NOT_CONNECTED

The remote SDP server is disconnected.

STATUS_INVALID_PARAMETER

The SDP connection handle passed in the input buffer is invalid.

STATUS_NOT_FOUND

The SDP connection handle passed in the input buffer was not found.

 

Remarks

If the record to be removed was published using IOCTL_BTH_SDP_SUBMIT_RECORD_WITH_INFO, this indicates that class of device (CoD) bits were set. In this case, calling IOCTL_BTH_SDP_REMOVE_RECORD might cause the CoD bits to be cleared. The bits will remain set if another client has set them but has not called this IOCTL.

Requirements

Version

Versions: Supported in Windows Vista, and later.

Header

Bthioctl.h (include Bthioctl.h)

IRQL

<= PASSIVE_LEVEL

See also

IOCTL_BTH_SDP_SUBMIT_RECORD
IOCTL_BTH_SDP_SUBMIT_RECORD_WITH_INFO

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft