Article View: borland.public.cppbuilder.nativeapi
Article #16404Re: Set priority of a process
From: Benoit
Date: Thu, 15 May 2003 08:59
Date: Thu, 15 May 2003 08:59
35 lines
1853 bytes
1853 bytes
That work !!! I didn't use the right function to have the handle of my application ! With "GetCurrentProcess()", I have no more problem ! Thanks Vladimir ! Have a good day ! ben "Vladimir Afanasyev" <avv@systema.kiev.ua> a οΏ½crit dans le message news: 3ebf7520$1@newsgroups.borland.com... > > Hi, > May be your code incorrect. > What way do you use? > As a rule I use next: > > bool res=SetPriorityClass( > GetCurrentProcess(), // handle to the process > REALTIME_PRIORITY_CLASS // priority class value > ); > > if(res ....) > > > bool res=SetPriorityClass( > GetCurrentProcess(), // handle to the process > NORMAL_PRIORITY_CLASS // priority class value > ); > > > for current process. Or you want to do it for another > process? > > Vladimir. >
Technical Details
Message-ID:
<3ec35670$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!skynet.be!skynet.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ebf61a4$1@newsgroups.borland.com> <3ebf7520$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,5c4b836bf3ccccb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-15 02:18:56 PST From: "Benoit" <ni-infos@yahoo.fr> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ebf61a4$1@newsgroups.borland.com> <3ebf7520$1@newsgroups.borland.com> Subject: Re: Set priority of a process Date: Thu, 15 May 2003 10:59:35 +0200 Lines: 37 Organization: Neige Informatique X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 81.50.236.84 Message-ID: <3ec35670$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052989040 81.50.236.84 (15 May 2003 01:57:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!skynet.be!skynet.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail