首页
社区
课程
招聘
[求助]如何知道一个程序已完全加载
发表于: 2009-8-6 13:01 4272

[求助]如何知道一个程序已完全加载

2009-8-6 13:01
4272
应用程序启动时需要一定时间的,不同配置的电脑启动同一软件消耗的时间也不一样,我想请教有没有一种办法可以知道一个程序已完全启动起来?    谢谢

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 636
活跃值: (174)
能力值: ( LV9,RANK:260 )
在线值:
发帖
回帖
粉丝
2
The calling thread can use the WaitForInputIdle function to wait until the new process has finished its initialization and is waiting for user input with no input pending. This can be useful for synchronization between parent and child processes, because CreateProcess returns without waiting for the new process to finish its initialization. For example, the creating process would use WaitForInputIdle before trying to find a window associated with the new process.

From MSDN
2009-8-6 13:40
0
雪    币: 167
活跃值: (136)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
调用线程可以使用WaitForInputIdle功能要等到新的进程已经完成了它的初始化并等待用户输入,没有输入悬而未决。这可用于同步的父母和孩子之间的过程,因为CreateProcess的回报,而无需等待新的进程,以完成其初始化。例如,在创建过程中会使用WaitForInputIdle之前试图找到一个窗口,与新的进程。

来自 MSDN
2009-8-6 14:44
0
游客
登录 | 注册 方可回帖
返回
//