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 Anwendung als Standard Editor für Internet Explorer (https://www.delphipraxis.net/49124-anwendung-als-standard-editor-fuer-internet-explorer.html)

kingflo 5. Jul 2005 22:17


Anwendung als Standard Editor für Internet Explorer
 
Hallo ich möchte gerne, dass mein Editor als Standard Editor für den IE eingesetzt wird also wenn man dort auf Ansicht Quelltext klickt, dann soll der quelltext mit meinem Editor angezeigt werden. Ich habe es so versucht:


Delphi-Quellcode:
 reg.RootKey := HKEY_LOCAL_MACHINE;
  if reg.OpenKey('\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\ComPad', True) then
  reg.WriteString('', Application.ExeName);
Allerdings bekomme ich dann eine zugriffsverletzung in der exe. Weiß aber nicht warum.

Kann mir da jemand helfen?

marabu 6. Jul 2005 06:14

Re: Anwendung als Standard Editor für Internet Explorer
 
So geht es:

Delphi-Quellcode:
reg.RootKey := HKEY_LOCAL_MACHINE;
if reg.OpenKey('\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name', true) then
  reg.WriteString('', Application.ExeName);
Allerdings benötigst du auch Schreibrechte auf dem Hive HKLM.

Grüße vom marabu


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:58 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