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