BluetoothFindNextRadio 函数

BOOL BluetoothFindNextRadio(
    HBLUETOOTH_RADIO_FIND hFind,
    HANDLE* phRadio
);
BluetoothFindNextRadio找到下一个蓝牙设备。

参数:
hFind

Handle returned by a previous call to the BluetoothFindFirstRadio function.     由先前对BluetoothFindFirstRadio函数的调用返回的句柄。

phRadio

On input, a pointer to where the next enumerated radio HANDLE will be returned. Upon success, returns a pointer to the handle of the next available radio.

在输入时,返回下一个枚举的广播句柄的指针。成功后,返回指向下一个可用电台句柄的指针。

返回值:

Returns TRUE when the next available radio is successfully found.  当成功找到下一个可用电台时返回TRUE。

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

当没有找到新的蓝牙设备时返回FALSE。调用GetLastError函数以获得关于错误的更多信息。下表描述了常见的错误:

Return codeDescription

ERROR_INVALID_HANDLE

The handle is NULL.   句柄为空。

ERROR_NO_MORE_ITEMS

No more radios were found.  没有再找到设备。

ERROR_OUTOFMEMORY

Out of memory.  内存不足。

Header

Declared in BluetoothAPIs.h; include Bthsdpdef.h and BluetoothAPIs.h.

Library

Use Bthprops.lib.

原文地址:https://www.cnblogs.com/qiwu1314/p/9981734.html