A
akpubulic
Unregistered / Unconfirmed
GUEST, unregistred user!
枚举进程我已经知道了,关键是怎么去枚举其子进程:
var
lppe: TProcessEntry32;
found : boolean;
Hand : THandle;
MainNode:TTreeNode;
begin
Hand := CreateToolhelp32Snapshot(TH32CS_SNAPALL,0);
found := Process32First(Hand,lppe);
while founddo
begin
MainNode:=tv_Process.Items.AddChild(nil,StrPas(lppe.szExeFile));
//就在这里,怎么样去列出这个进程的子进程啊?帮帮忙!
tv_Process.Items.AddChild(MainNode,{*****});
found := Process32Next(Hand,lppe);
end;
CloseHandle(Hand);
var
lppe: TProcessEntry32;
found : boolean;
Hand : THandle;
MainNode:TTreeNode;
begin
Hand := CreateToolhelp32Snapshot(TH32CS_SNAPALL,0);
found := Process32First(Hand,lppe);
while founddo
begin
MainNode:=tv_Process.Items.AddChild(nil,StrPas(lppe.szExeFile));
//就在这里,怎么样去列出这个进程的子进程啊?帮帮忙!
tv_Process.Items.AddChild(MainNode,{*****});
found := Process32Next(Hand,lppe);
end;
CloseHandle(Hand);