摘要: private static ManagementEventWatcher insertWatcher; private static ManagementEventWatcher removeWatcher; static void Main(string[] args) { insertWatc 阅读全文
posted @ 2024-03-01 13:55 奇迹之耀 阅读(181) 评论(0) 推荐(0) 编辑
摘要: string vid = "04B4"; string pid = "1003"; string query = $"SELECT * FROM Win32_PnPEntity WHERE DeviceID LIKE '%VID_{vid}%&PID_{pid}%'"; ManagementObje 阅读全文
posted @ 2024-03-01 11:45 奇迹之耀 阅读(115) 评论(0) 推荐(0) 编辑