能力值:
( LV2,RANK:10 )
|
-
-
[求助]请教高手,怎么禁止发现新硬件安装对话框
[QUOTE=b23526;1012751]试试这个
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Settings]
"SuppressNewHWUI"=dword:00000001[/QUOTE]
首先谢谢b23526
测试结果禁是禁了弹出安装对话框,但它不安装驱动,这样也没办法使用。我想实现的效果是这样的:就像我们插入一个usb设备一样,听得到叮咚一声,而不会弹出要安装驱动,而且驱动是加载成功的,因为之前已经装过驱动了,我这里只不过是换了个虚拟设备的插入而已。
像SerialNull,VSPM那些虚拟串口软件,就能做到不会弹出安装驱动对话框就可以添加多个设备,我跟踪过IRP,我也是照那样参数返回的,但就是不行,在谷歌搜了好些这方面的问题,都没找到满意答案,似乎说是要过数字签名才行,到现在还搞不明白这些商业软件怎么做到的。
|