Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Internetoptionen aufrufen (https://www.delphipraxis.net/74093-internetoptionen-aufrufen.html)

Martin K 27. Jul 2006 22:35


Internetoptionen aufrufen
 
Hi DP'ler,

hab schon ein wenig gegoogelt und auch mal hier gesucht, wurde aber leider noch nicht fündig.

Also:
Gibt es eine Möglichkeit, mit Delphi die Internetoptionen aufzurufen?

Luckie 27. Jul 2006 22:40

Re: Internetoptionen aufrufen
 
Per Shellexecute das entsprechende Systemsteuerungsapplet aufrufen.

Martin K 27. Jul 2006 22:42

Re: Internetoptionen aufrufen
 
Systemsteuerungsapplet?
Damit hab ich in Delphi noch nie gearbeitet...
Hast du evtl. ein Code-Schnipsel ? :roll:

//Edit:
So, hab jetzt das hier gefunden.
Dann mal ein wenig im System-Verzeichnis nach CPL-Dateien geguckt und wurde unter der Date inetcpl.cpl fündig.

So funktioniert's also:
Delphi-Quellcode:
ShellExecute(Handle, 'open', 'rundll32.exe', 'shell32.dll,Control_RunDLL inetcpl.cpl', nil, SW_SHOWNORMAL);

fkerber 27. Jul 2006 22:55

Re: Internetoptionen aufrufen
 
Hi!

Einfach per ShellExecute INETCPL.CPL aufrufen!


Ciao, Frederic

Martin K 27. Jul 2006 23:02

Re: Internetoptionen aufrufen
 
Oh, da kam ja noch ein Beitrag...

Ist der rote Kasten eigentlich im Urlaub???
Den hab ich in letzter Zeit öfters vermisst....

Danke übrigens für eure Antworten!
Problem gelöst :thumb:

KingIR 27. Jul 2006 23:29

Re: Internetoptionen aufrufen
 
Nur so als Info, der Weg über rundll32 ist nicht der empfohlene.

Vgl:
http://support.microsoft.com/?kbid=166168 --> The technique described here is subject to change in future versions of Windows and is provided for debugging purposes only. If you want your application to launch control panel applications programmatically, you should use the Control.exe program.

http://support.microsoft.com/?kbid=135068 <-- Empfohlene Methode

Martin K 28. Jul 2006 14:09

Re: Internetoptionen aufrufen
 
Danke :thumb:

Hab jetzt den Code so geändert:
Delphi-Quellcode:
ShellExecute(Handle, 'open', 'control.exe', 'inetcpl.cpl', nil, SW_SHOWNORMAL);


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:30 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz