Autor Beitrag
Hux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 171



BeitragVerfasst: Do 15.09.05 08:40 
Hallo Leutz,
könnt ihr mir sagen wie ich den Pfad der Verlaufsdaten und die Cookies vom InternetExplorer rausfinden kann?
Unter Win95/98 is es ja anders als unter WinXP...
Und wenn ihr schondabei seit: Wie kann ich diese Dateien mehrmals überschreiben..., sa dass man wenigstens Probleme hat, diese wiederherzustellen...

Danke für Antworten...

Der Hux

Moderiert von user profile iconraziel: Topic als "Erledigt" markiert.
Raffo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 300



BeitragVerfasst: Do 15.09.05 09:17 
mit einer Funktion GetSpecialFolder

Vollständige Unit, Button1 und Button2 auf Form setzen:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, ComCtrls, ActiveX, ShlObj, ShellAPI;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);

  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

function GetSpecialFolder(hWindow: HWND; Folder: Integer): String;


var
  Form1: TForm1;
  Allocator: IMalloc;

implementation

{$R *.DFM}

function GetSpecialFolder(hWindow: HWND; Folder: Integer): String;
var
  pMalloc: IMalloc;
  pidl: PItemIDList;
  Path: PChar;
begin
  // get IMalloc interface pointer
  if (SHGetMalloc(pMalloc) <> S_OK) then
  begin
    MessageBox(hWindow, 'Couldn''t get pointer to IMalloc interface.',
               'SHGetMalloc(pMalloc)', 16);
    Exit;
  end;

  // retrieve path
  SHGetSpecialFolderLocation(hWindow, Folder, pidl);
  GetMem(Path, MAX_PATH);
  SHGetPathFromIDList(pidl, Path);
  Result := Path;
  FreeMem(Path);

  // free memory allocated by SHGetSpecialFolderLocation
  pMalloc.Free(pidl);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
MessageDlg (GetSpecialFolder (handle,CSIDL_HISTORY), mtInformation, [mbOK], 0);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
MessageDlg (GetSpecialFolder (handle,CSIDL_COOKIES), mtInformation, [mbOK], 0);
end;

end.


Quelle: www.delphipraxis.net...pic571,previous.html

Moderiert von user profile iconGausi: Code- durch Delphi-Tags ersetzt.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 15.09.05 09:45 
Damit bekommst du sie aber immer noch nicht gelöscht, da FindFirstFile / FindNextFile in diesen Ordnern nicht funktionieren. Aber eine Forensuche nach Suche in: Delphi-Forum, Delphi-Library COOKIES LÖSCHEN sollte Lösungen zu Tage fördern.
Hux Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 171



BeitragVerfasst: Sa 17.09.05 12:47 
Hallo...,

Danke für die Hilfe!...

Der Ich