Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个自定义的 HID 兼容 USB 设备。我想设置 Windows 以在插入此设备时启动应用程序。这可以通过配置设置吗?或者我是否需要编写一个应用程序(例如,在 Windows 启动时驻留在系统托盘中的应用程序)来检测设备何时插入?
我知道我的佳能相机和诺基亚手机在插入时可以启动应用程序或自动播放,但它们不是 HID 设备。
您应该能够通过监视 WMI Win32_DeviceChangeEvent 或 RegisterDeviceNotification 来实现此目的。