[DUG] Program Priority
Rohit Gupta
rohit at cfl.co.nz
Fri Mar 24 09:06:24 NZST 2006
I would be interested in hearing from anyone who this call worked for.
Because it did not work for me. I have still left it in the app... but the priority
just does not change. :-(
From: "Struan Judd" <struan.judd at ecargo.co.nz>
To: "'NZ Borland Developers Group - Delphi List'" <delphi at ns3.123.co.nz>
Subject: RE: [DUG] Program Priority
Date sent: Thu, 23 Mar 2006 17:18:39 +1200
Organization: eCargo
Send reply to: struan.judd at ecargo.co.nz,
NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz>
<mailto:delphi-request at ns3.123.co.nz?subject=unsubscribe>
<mailto:delphi-request at ns3.123.co.nz?subject=subscribe>
[ Double-click this line for list subscription options ]
If you have the necessary permissions you can use the following Win23
functions. Found courtesy of Platform SDK where you'llhave to check to get
the useful constant values etc.
HANDLE OpenProcess(
DWORD dwDesiredAccess,
BOOL bInheritHandle,
DWORD dwProcessId
);
And
BOOL SetPriorityClass(
HANDLE hProcess,
DWORD dwPriorityClass
);
Struan Judd Mailto:struan.judd at ecargo.co.nz
Developer Phone: +64 (9) 368 9368
eCargo Fax: +64 (9) 368 9369
Visibility - Communication - Measurement Mobile: +64 (21) 685 335
Private & Confidential http://www.ecargo.co.nz
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Eion McIntosh (Christchurch)
Sent: Thursday, 23 March 2006 3:57 p.m.
To: Delphi List Group
Subject: [DUG] Program Priority
Hi
I have the code for finding the various processing running on a PC, but once
you have their pid numbers is there a call you can make to change its
running priority from normal to low? You can do this via the Task Manager
and doing Set Priority, but this requires used intervention, I would like
have it automated.
Regards
Eion McIntosh
PPCS Ltd
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
Regards
Rohit
======================================================================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280
FX (649) 489-2290
email rohit at cfl.co.nz or r.gupta at xtra.co.nz
======================================================================
More information about the Delphi
mailing list