BLUETOOTH_LOCAL_SERVICE_INFO structure

The BLUETOOTH_LOCAL_SERVICE_INFO structure contains local service information for a Bluetooth device. This structure is used by the BluetoothSetLocalServiceInfo function.

Syntax


typedef struct _BLUETOOTH_LOCAL_SERVICE_INFO {
  BOOL              Enabled;
  BLUETOOTH_ADDRESS btAddr;
  WCHAR             szName[BLUETOOTH_MAX_SERVICE_NAME_SIZE];
  WCHAR             szDeviceString[BLUETOOTH_DEVICE_NAME_SIZE];
} BLUETOOTH_LOCAL_SERVICE_INFO;

Members

Enabled

If TRUE, specifies that the advertised services are enabled; otherwise the advertised services are disabled.

btAddr

A BLUETOOTH_ADDRESS structure that contains the address of a remote device. This address is used when advertising services to a device.

szName

The service name. The maximum length of this string, including the null terminator, is BLUETOOTH_MAX_SERVICE_NAME_SIZE (256).

szDeviceString

The local device name, if any, such as COM4 or LPT1. The maximum length of this string, including the null terminator, is BLUETOOTH_DEVICE_NAME_SIZE (256).

Remarks

In the event the service is not associated with a specific device, btAddr should be set to BTH_ADDR_NULL.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

None supported

Header

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

See also

BluetoothSetLocalServiceInfo

 

 

Community Additions

ADD
Show:
© 2014 Microsoft