SDP_ELEMENT_DATA structure

The SDP_ELEMENT_DATA structure stores SDP element data.

Syntax


typedef struct _SPD_ELEMENT_DATA {
  SDP_TYPE         type;
  SDP_SPECIFICTYPE specificType;
  union {
    SDP_LARGE_INTEGER_16  int128;
    LONGLONG              int64;
    LONG                  int32;
    SHORT                 int16;
    CHAR                  int8;
    SDP_ULARGE_INTEGER_16 uint128;
    ULONGLONG             uint64;
    ULONG                 uint32;
    USHORT                uint16;
    UCHAR                 uint8;
    UCHAR                 booleanVal;
    GUID                  uuid128;
    ULONG                 uuid32;
    USHORT                uuid16;
    struct {
      LPBYTE value;
      ULONG  length;
    } string;
    struct {
      LPBYTE value;
      ULONG  length;
    } url;
    struct {
      LPBYTE value;
      ULONG  length;
    } sequence;
    struct {
      LPBYTE value;
      ULONG  length;
    } alternative;
  } data;
} SDP_ELEMENT_DATA, *PSDP_ELEMENT_DATA;

Members

type

Enumeration of SDP element types. Generic element types have a specificType value different from SDP_ST_NONE. The generic SDP element types are the following:

  • SDP_TYPE_UINT
  • SDP_TYPE_INT
  • SDP_TYPE_UUID

The following element types do not have corresponding specificType values:

  • SDP_TYPE_STRING
  • SDP_TYPE_URL
  • SDP_TYPE_SEQUENCE
  • SDP_TYPE_ALTERNATIVE
  • SDP_TYPE_BOOLEAN
  • SDP_TYPE_NIL

There is no associated data value with the type SDP_TYPE_NIL.

specificType

Specific type of SDP element, used to further specify generic element types.

data
int128

Value for type equals SDP_TYPE_INT, value for specificType equals SDP_ST_INT128.

int64

Value for type equals SDP_TYPE_INT, value for specificType equals SDP_ST_INT64.

int32

Value for type equals SDP_TYPE_INT, value for specificType equals SDP_ST_INT32.

int16

Value for type equals SDP_TYPE_INT, value for specificType equals SDP_ST_INT16.

int8

Value for type equals SDP_TYPE_INT, value for specificType equals SDP_ST_INT8.

uint128

Value for type equals SDP_TYPE_UINT, value for specificType equals SDP_ST_UINT128.

uint64

Value for type equals SDP_TYPE_UINT, value for specificType equals SDP_ST_UINT64.

uint32

Value for type equals SDP_TYPE_UINT, value for specificType equals SDP_ST_UINT32.

uint16

Value for type equals SDP_TYPE_UINT, value for specificType equals SDP_ST_UINT16.

uint8

Value for type equals SDP_TYPE_UINT, value for specificType equals SDP_ST_UINT8.

booleanVal

Value for type equals SDP_TYPE_BOOLEAN.

uuid128

Value for type equals SDP_TYPE_UUID, value for specificType equals SDP_ST_UUID128.

uuid32

Value for type equals SDP_TYPE_UUID, value for specificType equals SDP_ST_UUID32.

uuid16

Value for type equals SDP_TYPE_UUID, value for specificType equals SDP_ST_UUID16.

string
value

Value for type equals SDP_TYPE_STRING, which is a raw string buffer. Cannot be encoded as ANSI. Use the BluetoothSdpGetString function to convert the value if it is described by the base language attribute identifier list.

length

Raw length of the string. Cannot be null terminated.

url
value

Value for type equals SDP_TYPE_URL.

length

Length of the raw URL. Cannot be null terminated.

sequence
value

Raw sequence that begins at the sequence element header. Value for type equals SDP_TYPE_SEQUENCE.

length

Length of the raw sequence. Cannot be null terminated.

alternative
value

Raw alternative that begins at the alternative element header. Value for type equals SDP_TYPE_ALTERNATIVE.

length

Length of the raw alternative. Cannot be null terminated.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

None supported

Header

BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)

See also

BluetoothSdpEnumAttributes
BluetoothSdpGetAttributeValue
BluetoothSdpGetContainerElementData
BluetoothSdpGetElementData
BluetoothSdpGetString
PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK

 

 

Community Additions

ADD
Show:
© 2014 Microsoft