🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1670

Re: Highest Priority

#1670
From: Mark Jacobs
Date: Tue, 24 Aug 2004 15:38
18 lines
1381 bytes
On Tue, 24 Aug 2004 15:44:52 +0800, ascll <ascllREMOVE@yahoo.com> wrote:

> How to I set my application to having highest priority to access to  
> Internet among others also have to access Internet

In the main form's constructor, put this :-

SetPriorityClass(GetCurrentProcess(),HIGH_PRIORITY_CLASS);

HTH
-- 
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
markj atty critical dotty co dotty uk
Technical Details
Message-ID: <opsc8tpsa5bvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <412af242@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,7bf9fe29c83de263
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: Highest Priority
Reply-To: markjattycriticaldottycodottyuk
References: <412af242@newsgroups.borland.com>
Message-ID: <opsc8tpsa5bvaws7@dk-tzx09ucg42z4.s1.sol1.co.uk>
Date: Tue, 24 Aug 2004 16:38:06 +0100
From: "Mark Jacobs" <markjattycriticaldottycodottyuk>
Organization: DK Computing
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Content-Transfer-Encoding: Quoted-Printable
User-Agent: Opera M2/7.53 (Win32, build 3850)
NNTP-Posting-Host: 81.144.157.8
X-Trace: newsgroups.borland.com 1093361884 81.144.157.8 (24 Aug 2004 08:38:04 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail