// bthioctl.h
typedef struct _BTH_SDP_ATTRIBUTE_SEARCH_REQUEST {
HANDLE_SDP_TYPE HANDLE_SDP_FIELD_NAME;
ULONG searchFlags;
ULONG recordHandle;
SdpAttributeRange range[1];
} BTH_SDP_ATTRIBUTE_SEARCH_REQUEST, *PBTH_SDP_ATTRIBUTE_SEARCH_REQUEST;
View the official Windows Driver Kit DDI referenceNo description available.
The BTH_SDP_ATTRIBUTE_SEARCH_REQUEST structure contains information pertinent to an SDP attribute search.
HANDLE_SDP_FIELD_NAMEHandle returned by the connect request or HANDLE_SDP_LOCAL.
searchFlagsCombination of SDP_SEARCH_Xxx flags.
recordHandleThe record handle that is returned by the remote SDP server from a previous call to the IOCTL_BTH_SDP_SERVICE_SEARCH IOCTL.
rangeA variable-length array of structures of type SdpAttributeRange that contains the range of SDP attributes for which to search. The range array must be in ascending numeric order.
This structure is passed as the input buffer to the IOCTL_BTH_SDP_ATTRIBUTE_SEARCH IOCTL.
The Bluetooth driver stack determines the number of array items in the range member by examining the length of the IOCTL_BTH_SDP_ATTRIBUTE_SEARCH input buffer. Because of this, you must calculate the exact value of the Parameters.DeviceIoControl.InputBufferLength member that is passed when IOCTL_BTH_SDP_SERVICE_SEARCH is called.