🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Main thread & process priority

#17555
From: Dennis Jones
Date: Fri, 14 Mar 2003 21:14
14 lines
1363 bytes
"Sa�a Mrvo�" <sasa.mrvos@fer.hr> wrote in message
news:3e723bee@newsgroups.borland.com...
> Hi,
>     how can I change priority of a main thread, and priority class of main
> process?
>
> Thanks

The same as for all other threads:  SetThreadPriority() and
SetPriorityClass().  To get the handle for the main thread, call
GetCurrentThread() from any function that is running in the main thread.

- Dennis
Technical Details
Message-ID: <3e724640$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!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e723bee@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,6dbda3fcd3dcf1d0,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-15 08:26:30 PST
From: "Dennis Jones" <djones@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e723bee@newsgroups.borland.com>
Subject: Re: Main thread & process priority
Date: Fri, 14 Mar 2003 13:14:41 -0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 204.200.27.7
Message-ID: <3e724640$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047676480 204.200.27.7 (14 Mar 2003 13:14:40 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail