IPWorks Bluetooth 2020 C++ Edition

Questions / Feedback?

ServiceCount Property

The number of services on the device.

Syntax

ANSI (Cross Platform)
int GetServiceCount();
int SetServiceCount(int iServiceCount); Unicode (Windows) INT GetServiceCount();
INT SetServiceCount(INT iServiceCount);
#define PID_BTINFO_SERVICECOUNT 23

IPWORKSBT_EXTERNAL void* IPWORKSBT_CALL IPWorksBT_BTInfo_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSBT_EXTERNAL int IPWORKSBT_CALL IPWorksBT_BTInfo_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property shows how many services are present on the device.

This property is populated after calling ListServices. Set ServiceIndex from 0 to ServiceCount, and then examine the Service properties such as ServiceAddress, ServiceName, and ServiceClassId to retrieve information about each service.

Data Type

Integer

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Bluetooth 2020 C++ Edition - Version 20.0 [Build 7941]