我现在无意中snmi.com的广告条,很讨厌。每次IE的地址栏变化的时候就会随机弹出广告,我快疯了。上网都找不到它的去除方法,肯定不是运行后台程序,也没有在注册表里有相关信息。应该是使用BHO注册到IE,然后监视地址栏变化的事件做出行动。有没有什么方法写一个程序列出有什么DLL注册到IE了?我想自己找到那个文件去掉它。这有可能吗?
解决方案 »
- 请问如何能让form窗体透明,而窗体中的控件和图片能正常显示
- 这种错误提示代表了什么意思啊????
- 怎么禁止全局输入非法字符 比如~@!#%#$%之类的
- 【无边框窗体移动的问题】请教高人解决有关多个无边框窗口在响应鼠标事件时错乱的问题。
- 如何按年月进行分类检索
- 关于DBGridEh的滚动条事件,怎样触发,出答案后快速给分,有给表格控件增加序号列的朋友也请进
- 关于记录指针的问题
- 我用ASP.net+IIS为或c/s(比如用VB或DELPHI开发)开发环境,但想用WorkFlow定义工作流程,如下思路能否行得通!?指教……
- 怎样把GIF动画打包进程序
- 简单问题,一定给分啊!如何把date让maskedit控件按固定的格式显示出来__:__:__
- 救急!!!请问在rave中进行统计与小计.请给出原码.tks!!!!
- 关于一些编程语言的用途,及适用场合的问题?!
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Toolbar
下面
HKEY_CLASSES_ROOT\CLSID
中找到相应的宿主DLL,然后Regsvr32 /u 注销这个组件并且删除dll
后来好象是改了注册表,弄了好久才弄好,好象我找到了一个文件把它删除了就没事。
但时间太久了,具体怎么做的我忘了。(抱歉)
如果是,看看下面的程序(照搬的)uses
TLHelp32
public
{ Public declarations }
FSnapshotHandle: THandle;
ModuleArray: array of TModuleEntry32;
function GetProcessID(var List: TStringList; FileName: string = ''): TProcessEntry32;
end;function Tform1.GetProcessID(var List: TStringList; FileName: string = ''): TProcessEntry32;
var
Ret: BOOL;
s: string;
FProcessEntry32: TProcessEntry32;
begin
FSnapshotHandle := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
FProcessEntry32.dwSize := Sizeof(FProcessEntry32);
Ret := Process32First(FSnapshotHandle, FProcessEntry32);
while Ret do
begin
s := ExtractFileName(FProcessEntry32.szExeFile);
if (FileName = '') then
List.Add(PChar(s))
else if (AnsicompareText(Trim(s),Trim(FileName))=0) and (FileName <> '') then
begin
List.Add(Pchar(s));
result := FProcessEntry32;
break;
end;
Ret := Process32Next(FSnapshotHandle, FProcessEntry32);
end;
CloseHandle(FSnapshotHandle);
end;procedure TForm1.Button1Click(Sender: TObject);
var
FProcessEntry32: TProcessEntry32;
PID: integer;
List: TStringList;
ModuleListHandle: Thandle;
ModuleStruct: TMODULEENTRY32;
J: integer;
Yn: boolean;
begin
if Combobox1.itemindex = -1 then exit;
List := TStringList.Create;
FProcessEntry32 := GetProcessID(List, Combobox1.text);
PID := FProcessEntry32.th32ProcessID;
ModuleListHandle := CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pID);
ListBox1.Items.Clear;
ModuleStruct.dwSize := sizeof(ModuleStruct);
yn := Module32First(ModuleListHandle, ModuleStruct);
j := 0;
while (yn) do
begin
SetLength(ModuleArray, j + 1);
ModuleArray[j] := ModuleStruct;
ListBox1.Items.Add(ModuleStruct.szExePath);
yn := Module32Next(ModuleListHandle, ModuleStruct);
J := j + 1;
end;
CloseHandle(ModuleListHandle);
end;procedure TForm1.FormCreate(Sender: TObject);
var
List: TStringList;
i: integer;
begin
Combobox1.clear;
List := TStringList.Create;
GetProcessID(List);
for i := 0 to List.Count - 1 do
begin
Combobox1.items.add(Trim(List.strings[i]));
end;
List.Free;
Combobox1.itemindex := 0;
end;procedure TForm1.ListBox1Click(Sender: TObject);
var
I: integer;
begin
Listbox2.Clear;
if Listbox1.itemindex = -1 then exit;
for i := 0 to Length(ModuleArray) do
begin
if UpperCase(Listbox1.items[Listbox1.itemindex]) = UpperCase(ModuleArray[i].szExePath) then
begin
Listbox2.Items.add('模块名称:' + ModuleArray[i].szModule);
Listbox2.items.add('模块ID:' + IntToStr(ModuleArray[i].th32ModuleID));
Listbox2.items.add('所属进程ID:' + IntToStr(ModuleArray[i].th32ProcessID));
Listbox2.Items.add('全局使用数:' + intToStr(ModuleArray[i].GlblcntUsage));
Listbox2.items.add('进程使用数:' + IntToStr(ModuleArray[i].ProccntUsage));
ListBox2.items.add(format('模块基地址:%.8X' ,[Integer(ModuleArray[i].modBaseAddr)]));
Listbox2.items.add(format('模块大小:%.8X' ,[ModuleArray[i].modBaseSize]));
Listbox2.items.add(format('模块句柄:%.8X' ,[ModuleArray[i].hModule]));
exit;
end;
end;
end;
可是,非常意外,原来我的想法是错的。并没有找到可疑的DLL。那到底是什么原因呢?
http://www.csdn.net/develop/read_article.asp?id=6351
可以监控地址栏的改变
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects
地方的键
唉……
看看能不能查出来