PVALIDATESTREAM callback function (bthsdpddi.h)
The Bluetooth SdpValidateStream function is used to parse a raw SDP record and determine if it contains errors.
PVALIDATESTREAM Pvalidatestream;
NTSTATUS Pvalidatestream(
PUCHAR Stream,
ULONG Size,
PULONG_PTR ErrorByte
)
{...}
Stream
A pointer to the raw SDP stream to be validated.
Size
An unsigned long integer that indicates the size of the SDP stream to be validated.
ErrorByte
A pointer to a variable that receives the address of the first byte in the SDP record that contains an error. The address is absolute.
Possible return values include:
- STATUS_SUCCESS
- STATUS_INVALID_PARAMETER
The SdpValidateStream function does nothing on success. On failure, it pinpoints the location of the first error in the specified SDP record.
Bluetooth profile drivers should use this function to validate all SDP streams from external sources. Other SDP functions might not perform complete data validation.
Bluetooth profile drivers can obtain a pointer to this function through the BTHDDI_SDP_PARSE_INTERFACE structure.
Requirement | Value |
---|---|
Minimum supported client | Versions:_Supported in Windows Vista, and later. |
Target Platform | Desktop |
Header | bthsdpddi.h (include BthSdpddi.h) |
IRQL | <= PASSIVE_LEVEL |