如何通过安装任何驱动程序检查Windows是否忙? [英] How to check if Windows is busy by installing any driver?
本文介绍了如何通过安装任何驱动程序检查Windows是否忙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我编写了通过dpinst.exe安装USB设备驱动程序的程序。在程序启动时,我想通过搜索/安装/更新某些驱动程序来检查Windows是否繁忙。 (我要避免的主要情况是Windows在搜索驱动程序中的已插入设备时启动dpinst.exe。)如何检查?
I write program which installs usb device driver by means of dpinst.exe. At program start I want to check if Windows is busy by searching/installing/updating some driver. (Main scenario I want to avoid is launch of dpinst.exe while Windows is searching driver for plugged device.) How can I check that?
推荐答案
解决方案是使用CMP_WaitNoPendingInstallEvents函数。示例此处。
Solution is to use CMP_WaitNoPendingInstallEvents function. Example here.
这篇关于如何通过安装任何驱动程序检查Windows是否忙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文