DeviceCount Property
The number of bluetooth devices.
Syntax
ANSI (Cross Platform) int GetDeviceCount(); Unicode (Windows) INT GetDeviceCount();
#define PID_BTINFO_DEVICECOUNT 5 IPWORKSBT_EXTERNAL void* IPWORKSBT_CALL IPWorksBT_BTInfo_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
Default Value
0
Remarks
This property holds the number of devices found after calling ListDevices.
To find details for each device set DeviceIndex to select a device. Valid values for DeviceIndex are from 0 to DeviceCount -1.
After setting DeviceIndex the following properties will be populated with information about the device:
- DeviceAddress
- DeviceAuthenticated
- DeviceClassOfDevice
- DeviceConnected
- DeviceLastSeen
- DeviceLastUsed
- DeviceName
- DeviceRemembered
This property is read-only.
Data Type
Integer