使用Win 7或Win 10配对蓝牙设备时出现Supressing System对话框 [英] Supressing System Dialog when pairing Bluetooth devices using Win 7 or Win 10

查看:145
本文介绍了使用Win 7或Win 10配对蓝牙设备时出现Supressing System对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功使用foot32库自动将蓝牙设备与Win 7和Win 10配对.不幸的是,出现了一个系统对话框,说点击配对".在Win 7下,无论是否点击该对话框,它都会配对.如果我不触摸对话框,则在Win 10下它不会配对. 实际上,有一个Win 10选项可以关闭对话框,但随后也不会发生配对. 在Win 7中,handlerequests被调用,在Win 10中则不是.

I am successfully automatically pairing Bluetooth device against Win 7 and Win 10, using feet32 Library. Unfortunately a System Dialog shows up, saying "tap to pair" Under Win 7 it pairs if I Tap the Dialog or not. Under Win 10 it does not pair, if I do not touch the dialog. Actually, there is a Win 10 option, that switches off the dialog, but then no pairing takes place also. Under Win 7 handlerequests is called, under Win 10 it is not.

在Win 7下仍然可以配对.

Under Win 7 it pairs anyway.

Dim  pairer As New BluetoothWin32Authentication(AddressOf handleRequests ) 

Public Sub handleRequests(ByVal thing As Object, ByVal args As BluetoothWin32AuthenticationEventArgs)        
    args.Confirm = True
End Sub

Protected Function TryRemember(ByVal peer As BluetoothDeviceInfo) As Boolean
    If peer Is Nothing Then Return False        
    Return BluetoothSecurity.PairRequest(peer.DeviceAddress, Nothing )
End Function

推荐答案

没有简单的方法可以做到这一点.但是,我们的蓝牙框架可以通过使用未记录的方式来做到这一点.在任何Windows平台上均可使用.

There is no easy way to do that. However our Bluetooth Framework can do that by using undocumented way. Works on any Windows platform.

我不能分享他们的代码,因为它可以给你一个主意.您必须禁用身份验证代理.

I can not share thet code by can give you the idea. You have to disable Authentication Agent.

这篇关于使用Win 7或Win 10配对蓝牙设备时出现Supressing System对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆