如何改变ie的历史记录。。?删除。。添加。。。谢谢。。(20分)

  • 主题发起人 主题发起人 .com
  • 开始时间 开始时间
C

.com

Unregistered / Unconfirmed
GUEST, unregistred user!
如何改变ie的历史记录。。?删除。。添加。。。谢谢。。
 
procedure TForm1.Button1Click(Sender: TObject);<br>var<br>&nbsp; cache_info:PInternetCacheEntryInfo;<br>&nbsp; cbSizeOf_Cache_info:dword;<br>&nbsp; hw:hwnd;<br>&nbsp; buf:tstrings;<br>begin<br>&nbsp; buf:=tstringlist.Create;<br>&nbsp; new(cache_info);<br>&nbsp; hw:=FindFirstUrlCacheEntryEx(nil,0,NORMAL_CACHE_ENTRY or URLHISTORY_CACHE_ENTRY,0,cache_info,@cbSizeOf_Cache_info,nil,nil,nil);<br>&nbsp; if hw&lt;&gt;0 then<br>&nbsp; begin<br>&nbsp; &nbsp; DeleteUrlCacheEntry(cache_info.lpszSourceUrlName);<br>&nbsp; &nbsp; buf.Add(cache_info.lpszSourceUrlName);<br>&nbsp; &nbsp; while FindNextUrlCacheEntryEx(hw,cache_info,@cbSizeOf_Cache_info,nil,nil,nil) do<br>&nbsp; &nbsp; &nbsp; buf.Add(cache_info.lpszSourceUrlName);<br>&nbsp; &nbsp; &nbsp; DeleteUrlCacheEntry(cache_info.lpszSourceUrlName);<br>&nbsp; end;<br>&nbsp; FindCloseUrlCache(hw);<br>&nbsp; dispose(cache_info);<br>&nbsp; showmessage(buf.Text);<br>&nbsp; buf.Free;<br>end;
 
接受答案了.
 

Similar threads

回复
0
查看
995
不得闲
D
回复
0
查看
1K
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
890
DelphiTeacher的专栏
D
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部