怎样得到一个程序调用了那些DLL。(没人回答改成送分算了) (200分)

  • 主题发起人 主题发起人 protagonist
  • 开始时间 开始时间
P

protagonist

Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
var
lppe: TProcessEntry32;
found : boolean;
Hand : THandle;
begin
Hand := CreateToolhelp32Snapshot(TH32CS_SNAPALL,0);
found := Process32First(Hand,lppe);
while found do
begin
ListBox1.Items.Add(StrPas(lppe.szExeFile));
found := Process32Next(Hand,lppe);
end;
end;
以上可以得出进程中的所有文件,我到时只会显示EXE进程,点击EXE文件想知道EXE调用了那些DLL,没有的话就是不显示。
 
UP 者有分。
 
如果是在编程环境下,是可以看到的,在view->debug windows->moduls中。
 
to chenxz
可现在我是要用DELPHI写程序来完成这项工作。
 我实在不知道用什么方法来完成。
 
高手不会这么早就过年放假了吧。[:)]
 
Module32First
Module32Next
 
to gztomash
问题解决了,在98下用的就你所说的 Module32First,Module32Next。
 不过在2K下就没有了,2K支持 EnumProcessModules(枚举进程模块)。
 感觉比98下方便多了。 
 
多人接受答案了。
 
后退
顶部