🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #2416

Re: Proxy Settings veranderen in Internet Explorer

#2416
From: RP
Date: Tue, 15 Jun 2004 17:21
35 lines
2200 bytes
Anton wrote:

> Ik wil met een Delphi programmaatje in Internet Explorer de Lan settings
> aanpassen, namelijk de keuze maken als je al dan niet met een proxy server
> wil werken ..
> Je kan dit doen door deze waarde :
> Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable'
> in het register even op 0 of 1 te zetten
> 
> Vraag is : met welke Delphi code kan je dit doen ?? met onderstaande code
> zou je die waarde (0 of 1) alvast moeten kunnen lezen maar dit lukt niet,
> wat is hier fout ???    dank bij voorbaat ...
> 
> 
> var Reg : TRegistry;
> begin
>      Reg := TRegistry.Create;
>      With reg do
>      begin
>           RootKey := HKEY_CURRENT_USER;
>           OpenKey('\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ProxyEnable',False);
>           Label1.Caption := ReadString('');
>           CloseKey;
>           Free;
>      end;
> end;
> 
> 

OpenKey('\Software\Microsoft\Windows\CurrentVersion\Internet 
Settings',False);
Label1.Caption := inttostr(ReadInteger('ProxyEnable'));

RP
Technical Details
Message-ID: <canb6t$abs$1@news3.tilbu1.nb.home.nl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.telebyte.nl!newshub2.home.nl!newshub1.home.nl!home.nl!not-for-mail
References: <jzFzc.156822$0j.7994479@phobos.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,8cd30510005f7e43
X-Google-Thread: 107324,8cd30510005f7e43
X-Google-Attributes: gidfcea4,gid107324,public
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.telebyte.nl!newshub2.home.nl!newshub1.home.nl!home.nl!not-for-mail
From: RP <dont@mail.me>
Newsgroups: be.comp.programming,nl.comp.programmeren
Subject: Re: Proxy Settings veranderen in Internet Explorer
Date: Tue, 15 Jun 2004 19:21:29 +0200
Organization: @Home Benelux
Lines: 35
Message-ID: <canb6t$abs$1@news3.tilbu1.nb.home.nl>
References: <jzFzc.156822$0j.7994479@phobos.telenet-ops.be>
NNTP-Posting-Host: cc315820-a.joure1.fr.home.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news3.tilbu1.nb.home.nl 1087320093 10620 217.121.228.62 (15 Jun 2004 17:21:33 GMT)
X-Complaints-To: abuse@home.nl
NNTP-Posting-Date: Tue, 15 Jun 2004 17:21:33 +0000 (UTC)
User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207)
X-Accept-Language: en-us, en
In-Reply-To: <jzFzc.156822$0j.7994479@phobos.telenet-ops.be>