// bthsdpddi.h
PGETNEXTELEMENT Pgetnextelement;
VOID Pgetnextelement(
PUCHAR Stream,
ULONG StreamSize,
PUCHAR CurrentElement,
PUCHAR *NextElement,
PULONG NextElementSize
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The Bluetooth SdpGetNextElement function is used to iterate through the entries found in an SDP record stream.
StreamPointer to the SDP record stream to iterate through.
StreamSizeAn unsigned long integer that indicates the size of the SDP stream.
CurrentElementA pointer to the currently selected entry in the SDP stream. This parameter can take a NULL value.
NextElementA pointer to an unsigned character variable that receives the address of the next entry in the SDP container stream.
NextElementSizeA pointer to an unsigned long integer variable that receives the size of the next entry in the SDP container stream.
The SdpGetNextElement function operates directly on unparsed streams and does not require the caller to convert from a stream representation of the SDP record to a tree-based representation.
The SdpGetNextElement function iterates through the primary entries of a container stream but does not iterate through any sub-entries of the given entry. To iterate through the sub-entries call SdpGetNextElement iteratively using the NextElement parameter obtained from the previous call.
Calling this function with the CurrentElement parameter set to NULL returns the first entry in the container stream.
Bluetooth profile drivers can obtain a pointer to this function through the BTHDDI_SDP_PARSE_INTERFACE structure.