[DUG] Has Windows finished??
Gary T. Benner
gary at benner.co.nz
Mon Sep 14 20:24:31 NZST 2009
[Reply]
Jeremy,
The requirement is essentially to know when the resources of the computer are available enough to use ... so just decide what level the "system idle" resource should be ( make it configurable perhaps ), put some hysteresis in there ( maybe 3 seconds ) and you're away. Just keep it simple.
cheers
Gary
At 18:09 on 14/09/2009 you wrote
>To : delphi at delphi.org.nz
>CC : >From: Jeremy Coulter, jscoulter at gmail.com
>Content Type: text/html
>Attached: >
>This is a multipart message in MIME format.
>
>
>
>
>I agree. My business partner was approached by someone about writing an
>app. To basically tell the user that the computer is ready to use.
>
>My gut feeling is this is not the type of app. Thats going to be very
>reliable.....
>
> >
>Jeremy
>
> >
>From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
>Behalf Of Jolyon Smith
>Sent: Monday, 14 September 2009 17:48
>To: 'NZ Borland Developers Group - Delphi List'
>Subject: Re: [DUG] Has Windows finished??
>
> >
>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
>
>
>
>_______________________________________________
>NZ Borland Developers Group - Delphi mailing list
>Post: delphi at delphi.org.nz
>Admin: http://delphi.org.nz/mailman/listinfo/delphi
>Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
Ref#: 41006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20090914/0b8955bc/attachment-0001.html
More information about the Delphi
mailing list