> I am creating a window service using delphi 5. I need some help is getting 
> the CPU memory usage of the machine so that my service runs when CPU usage is 
> low. Is there any way to find out the CPU usage. Is there soem registry key 
> or soemthing. I am not sure actually.
>
>   
Strikes me that the best way to do this is to reduce the priority of 
service process instead. A process with appropriate privilege can get 
the id of process and then reduce the priority. I dont know if a process 
can do this to itself (I have my doubts) but perhaps your service runs 
within a context where another process can do this? As far as I know you 
cannot change priority through the SCM functions.
-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error 
please destroy and immediately notify us. Do not copy or disclose the contents.

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to