BluetoothIsDiscoverable 函数 (bluetoothapis.h)

BluetoothIsDiscoverable 函数确定蓝牙无线电或无线电是否可发现。

语法

BOOL BluetoothIsDiscoverable(
  HANDLE hRadio
);

参数

hRadio

有效的本地单选句柄,或 NULL。 如果 为 NULL,则确定所有本地无线电的发现;如果可发现任何无线电,则函数调用成功。

返回值

如果至少可发现一个蓝牙无线电,则返回 TRUE 。 如果未发现蓝牙无线电,则返回 FALSE

要求

要求
最低受支持的客户端 Windows Vista、Windows XP 和 SP2 [仅限桌面应用]
最低受支持的服务器 无受支持的版本
目标平台 Windows
标头 bluetoothapis.h (包括 Bthsdpdef.h、BluetoothAPIs.h)
Library Bthprops.lib
DLL bthprops.cpl

另请参阅

BluetoothAuthenticateDevice

BluetoothAuthenticateMultipleDevices

BluetoothEnableDiscovery

BluetoothEnableIncomingConnections

BluetoothIsConnectable

BluetoothRegisterForAuthentication

BluetoothSendAuthenticationResponse

BluetoothUnregisterAuthentication