SdpAttributeRange

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure contains the range to query for attribute or attribute service searching.

Syntax

struct _SdpAttributeRange {
  USHORT minAttribute;
  USHORT maxAttribute;
} SdpAttributeRange;

Members

  • minAttribute
    Low attribute value.
  • maxAttribute
    High attribute value.

Remarks

The attribute values of multiple pRange elements must be in order, from least to greatest. This means that pRange[i].minAttributes<=pRange[i].maxAttributes and that pRange[i].minAttributes<pRange[i+1].minAttributes and pRange[i].maxAttributes<pRange[i+1].maxAttributes.

In BTHNS_RESTRICTIONBLOB, one or more pRange are defined. The following example demonstrates how this value is used.

pRange[0].minAttribute = 0x0001;
pRange[0].maxAttribute = 0x0004;
// Server will return all attribIDs for given record between 1-4 AND...
pRange[1].minAttribute = 0x0009;
pRange[1].maxAttribute = 0x0009;
// ... server will return attrib ID info for attribute ID 9.

Requirements

Header bthsdpdef.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

BTHNS_RESTRICTIONBLOB
Bluetooth Application Development Structures