首页 文章

为不支持的设备安装dummy(null)驱动程序

提问于
浏览
-1

我们有一个硬件设备作为复合USB设备:MSC CDC HID WebUSB . 我们没有't want to support WebUSB for Windows 7 for a variety of reasons, but would like the device to install 2456847 and find drivers for all the USB interfaces it supplies, so that the user doesn'看到Windows通知"Device driver software was not successfully installed" .

在Windows 10上,内置了对所有设备的支持 . 在Windows 7上,我们提供了一个提供CDC( usbser )的驱动程序安装程序,其他内置驱动程序.CDC的 .inf 文件与设备的USB VID,PID和a匹配具体的MI,例如 USB\VID_vvvv&PID_pppp&MI_00 . WebUSB设备位于 USB\VID_vvvv&PID_pppp&MI_04 .

我想为 MI_04 提供一个虚拟驱动程序,所以它安装成功,但什么也没做 . Windows 7中是否有可用的内置虚拟驱动程序,或某种方式使用其他内置驱动程序无法执行任何操作?或者,为该接口安装虚拟驱动程序是否容易?

1 回答

  • 0

    我的搜索词有错误 . 我想要一个"null"驱动程序 . 链接在这里解释:https://docs.microsoft.com/en-us/windows-hardware/drivers/install/installing-a-null-driver . 空设备已被识别但未使用,将无法启动 .

    根据上面的链接,我在 .inf 中添加了这样的内容:

    [Devices]
    ...
    "WebUSB device dummy = NullInstall, USB\VID_vvvv&PID_pppp&MI_04
    ...
    
    [NullInstall]
    ; empty
    
    [NullInstall.Services]
    AddService = ,2    ; no value for the service name
    

相关问题