How to determine when a process has finished initial loading

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Is there a standard way of determining when a process has finished its
initial loading, such that it is ready to accept commands? For example, I am
starting Visual Studio (devenv.exe) from my own program. I would like to
perform some actions (like open a file), when Visual Studio is ready. Is
there a way to test when an application has finished displaying its main
window and is ready to accept user commands?

Thanks,
Notre
 
Hi Notre,

I noticed you also posted a similar issue in the
microsoft.public.vstudio.extensibility newsgroup, I will follow up to there.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Notre Poubelle said:
Hello,

Is there a standard way of determining when a process has finished its
initial loading, such that it is ready to accept commands? For example, I
am
starting Visual Studio (devenv.exe) from my own program. I would like to
perform some actions (like open a file), when Visual Studio is ready. Is
there a way to test when an application has finished displaying its main
window and is ready to accept user commands?

See

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/waitforinputidle.asp

http://www.pinvoke.net/default.aspx/user32/WaitForInputIdle.html

-cd
 
Back
Top