BluetoothUnregisterAuthentication 函数 (bluetoothapis.h)

BluetoothUnregisterAuthentication 函数删除以前通过调用 BluetoothRegisterForAuthentication 函数注册的回调例程的注册。

语法

BOOL BluetoothUnregisterAuthentication(
  HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle
);

参数

hRegHandle

以前调用 BluetoothRegisterForAuthentication 函数返回的句柄。

返回值

成功删除身份验证注册后,返回 TRUE 。 如果未成功关闭指定的句柄,则返回 FALSE

调用 GetLastError 函数以获取有关错误的详细信息。 下表描述了一个常见错误:

返回代码 说明
ERROR_INVALID_HANDLE
句柄为 NULL

要求

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

另请参阅

BLUETOOTH_DEVICE_INFO

BluetoothAuthenticateDevice

BluetoothAuthenticateMultipleDevices

BluetoothEnableDiscovery

BluetoothEnableIncomingConnections

BluetoothIsConnectable

BluetoothIsDiscoverable

BluetoothRegisterForAuthentication

BluetoothSendAuthenticationResponse