🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16508

Set priority of a process

#16508
From: Benoit
Date: Mon, 12 May 2003 08:58
15 lines
1483 bytes
Hello !

I must upgrade my application (process) in a realtime priority.
I work with Win2000 Server (with administrator's rights) and use Borland C++
6, and I try to use the fonction SetClassPriority() but it always return an
error (and GetClassPriority too). And the error returned by GetLastError()
is unexpected, something like : "Window do not have any scrollbar" !!

Is there another way to set a high priority to my process and if possible,
dynamically, to set it "realtime" just for a moment and to restablish the
normal priority after ?

Thanks for your help
Bye
ben
Technical Details
Message-ID: <3ebf61a4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5c4b836bf3ccccb,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-12 02:01:17 PST
From: "Benoit" <ni-infos@yahoo.fr>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Set priority of a process
Date: Mon, 12 May 2003 10:58:19 +0200
Lines: 19
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: 217.128.92.83
Message-ID: <3ebf61a4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052729764 217.128.92.83 (12 May 2003 01:56:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail