[DUG] Has Windows finished??

Jolyon Smith jsmith at deltics.co.nz
Mon Sep 14 17:47:30 NZST 2009


I'm not sure that any API - even if it exists - can actually be at all
reliable so I doubt that it even exists.

 

If it *did exist all it could possibly tell you is that Windows has loaded
and initialised all the processes that it thinks it needs to.  But Windows
itself does not and cannot know what those processes are going to do once
launched, so it has no way of knowing if/when those processes themselves are
"finished".

 

Some won't *ever* finish.  Some of those processes are launched and then
simply sit "resident" (showing my age I think) doing some work periodically,
such as the various "Update service" processes that numerous applications
install these days.

 

What constitutes "finished", in your terms, in these cases?  The executable
image has finished loading from disc?  The process associated has *started*?
The process associated has *finished*?  If the latter, does that mean
terminated and unloaded or  simply "gone idle" (what you consider "idle"
being potentially wholly different from what "idle" means to any one of
those processes).

 

It might be better to ask why you want to do this?  What is it you are
trying to achieve in your process?  What is it, specifically, you are
waiting for and why?

 

This might help identify an approach to suit your needs.

 

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Jeremy Coulter
Sent: Monday, 14 September 2009 14:07
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Has Windows finished??

 

Hi all.
Is there API or SOMETHING that I can call or look at that will tell me if
windows has finished "Loading". i.e. all the programs that windows has to
load have finshed loading etc. etc.
I guess I can look at the CPU usage, but not sure how good thisis. What if
one of the programs being loaded is a CPU hog because the machine is a bit
of a dog etc.

Anyone got any ideas?


Jeremy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20090914/038086cf/attachment.html 


More information about the Delphi mailing list