BluetoothUnregisterAuthentication 函式 (bluetoothapis.h)
BluetoothUnregisterAuthentication 函式會移除先前向 BluetoothRegisterForAuthentication 函式呼叫註冊的回呼例程註冊。
語法
BOOL BluetoothUnregisterAuthentication(
HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle
);
參數
hRegHandle
先前呼叫 BluetoothRegisterForAuthentication 函式所傳回的句柄。
傳回值
成功移除驗證註冊時,傳回 TRUE 。 如果指定的句柄未成功關閉,則傳回 FALSE 。
呼叫 GetLastError 函式以取得錯誤的詳細資訊。 下表描述常見的錯誤:
傳回碼 | Description |
---|---|
|
句柄為 NULL。 |
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows Vista、Windows XP 與 SP2 [僅限傳統型應用程式] |
最低支援的伺服器 | 都不支援 |
目標平台 | Windows |
標頭 | bluetoothapis.h (包括 Bthsdpdef.h、BluetoothAPIs.h) |
程式庫 | Bthprops.lib |
Dll | bthprops.cpl |
另請參閱
BluetoothAuthenticateMultipleDevices
BluetoothEnableIncomingConnections