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" <[EMAIL PROTECTED]>
To:                     "'NZ Borland Developers Group - Delphi List'" 
<[email protected]>
Subject:                RE: [DUG] Program Priority
Date sent:              Thu, 23 Mar 2006 17:18:39 +1200
Organization:           eCargo
Send reply to:          [EMAIL PROTECTED],
        NZ Borland Developers Group - Delphi List <[email protected]>
        <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED]>

[ 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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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
[email protected]
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 [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to