delphi枚举进程
delphi枚举进程procedureTForm1.Button1Click(Sender:TObject);
begin
Memo1.Clear;
EnumWindows(@EnumWindowsFunc,LParam(Memo1.Lines));
end;
functionEnumWindowsFunc
(Handle:THandle;List:TStringList)
:boolean;stdcall;
varCaption:arrayofChar;
begin
ifGetWindowText
(Handle,Caption,SizeOf(Caption)-1)<>0then
begin
List.Add(Caption);
SetWindowText(Handle,PChar('About-'+Caption));
end;
Result:=True;
end; 看看 挣点海币 楼主辛苦做的东西, 我不忍心轻易拿走, 必须留言,楼主辛苦了
页:
[1]