Partager via


SdpAttributeRange (Windows Embedded CE 6.0)

1/6/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

See Also

Reference

Bluetooth Application Development Structures
BTHNS_RESTRICTIONBLOB