BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT structure (bluetoothapis.h)
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_STRUCT;
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[BLUETOOTH_MAX_SERVICE_NAME_SIZE]
The service name. The maximum length of this string, including the null terminator, is BLUETOOTH_MAX_SERVICE_NAME_SIZE (256).
szDeviceString[BLUETOOTH_DEVICE_NAME_SIZE]
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | None supported |
Header | bluetoothapis.h (include Bthsdpdef.h, BluetoothAPIs.h) |