绝
绝对新手
Unregistered / Unconfirmed
GUEST, unregistred user!
DLL用远程线程插入了另一程序
DLL中关于线程进入时的代码:
DLL_PROCESS_ATTACH:
begin
trd:=TMsgThread.Create(true);
trd.Resume;
end;
unit中的:
var
trd:TMsgThread;
procedure TMsgThread.Execute;
begin
FreeOnTerminate:=false;
Form2:=TForm2.Create(nil);
Windows.SetParent(form2.Handle,application.Handle);
Form2.Show;
end;
创建了窗口之后一闪窗口就消失了
DLL中关于线程进入时的代码:
DLL_PROCESS_ATTACH:
begin
trd:=TMsgThread.Create(true);
trd.Resume;
end;
unit中的:
var
trd:TMsgThread;
procedure TMsgThread.Execute;
begin
FreeOnTerminate:=false;
Form2:=TForm2.Create(nil);
Windows.SetParent(form2.Handle,application.Handle);
Form2.Show;
end;
创建了窗口之后一闪窗口就消失了