BluetoothFindNextRadio function

The BluetoothFindNextRadio function finds the next Bluetooth radio.

Syntax

BOOL BluetoothFindNextRadio(
  HBLUETOOTH_RADIO_FIND hFind,
  HANDLE                *phRadio
);

Parameters

hFind

Handle returned by a previous call to the BluetoothFindFirstRadio function. Use BluetoothFindRadioClose to close this handle when it is no longer needed.

phRadio

Pointer to where the next enumerated radio handle will be returned. When no longer needed, this handle must be released via CloseHandle.

Return Value

Returns TRUE when the next available radio is found.

Returns FALSE when no new radios are found. Call the GetLastError function for more information on the error. The following table describe common errors:

Return code Description
ERROR_INVALID_HANDLE
The handle is NULL.
ERROR_NO_MORE_ITEMS
No more radios were found.
ERROR_OUTOFMEMORY
Out of memory.

Requirements

   
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header bluetoothapis.h (include Bthsdpdef.h, BluetoothAPIs.h)
Library Bthprops.lib
DLL Bthprops.dll

See Also

BLUETOOTH_FIND_RADIO_PARAMS

BluetoothFindFirstRadio

BluetoothFindRadioClose

BluetoothGetRadioInfo

GetLastError