SdpAttributeRange

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

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Bthsdpdef.h.

See Also

BTHNS_RESTRICTIONBLOB | Bluetooth Structures

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.