论坛: 编程破解 标题: 如何监测系统中哪些程序在运行 复制本贴地址    
作者: sainthero [sainthero]    论坛用户   登录
这里要用的是两个api函数
GetWindow();GetWindowText();
我的程序是用delphi写的,这里我只给出主要部分
var
  curWindow:HWND;
  szText:array[0..254] of char;
begin
  curWindow:=GetWindow(handle,GW_HWND,FIRST);//获得窗口句柄
  while curWindow<>0 do
    begin
     if GetWindowText(curWindow,@szText,255)>0 then
       Memo1.Lines.Add(Strpas(@szText));
      curWindow:=GetWindow(curWindow,GW_HWNDNEXT);
    
    end;
end;
用兴趣的朋友可以调试一下,看看能不能检测到机子上的木马程序

地主 发表时间: 06/29 21:54

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号