help!!! 我把我做的DLL加入到了inetinfo.exe中但程序没有显示结果,加入到Explorer.Exe就能显示(DLL中我用了定时方法),详细请入

  • 主题发起人 主题发起人 liop
  • 开始时间 开始时间
L

liop

Unregistered / Unconfirmed
GUEST, unregistred user!
help!!! 我把我做的DLL加入到了inetinfo.exe中但程序没有显示结果,加入到Explorer.Exe就能显示(DLL中我用了定时方法),详细请入内。。。。(100分)<br />我把我做的DLL加入到了inetinfo.exe中但程序没有显示结果,<br>加入到Explorer.Exe就能显示(DLL中我用了定时方法)<br><br>照说加入了,应是没问题。<br><br>高手,请给个答案。<br><br>
 
被安装的DLL主要代码:<br>unit mainform;<br>interface<br>uses<br>&nbsp; windows,messages;<br>const<br>exename:pchar='dll';<br>type<br>&nbsp; TWin = record<br>&nbsp; &nbsp; Msg:TMsg;<br>&nbsp; &nbsp; wClass:TWndClass;<br>&nbsp; &nbsp; hMain:integer;<br>&nbsp; end;<br>var<br>&nbsp; &nbsp; Win:TWin;<br>&nbsp; &nbsp; hInst,handle,newtimer:integer;<br>procedure run;stdcall;<br>implementation<br>function WindowProc(hWnd,Msg,wParam,lParam:longint):LRESULT; stdcall;<br>begin<br>&nbsp;case Msg of<br>&nbsp; WM_TIMER: &nbsp;MessageBox(handle,'hello','hello',0);<br>&nbsp; wm_destroy: halt;<br>&nbsp; end;<br>&nbsp; Result:=DefWindowProc(hWnd,Msg,wParam,lParam);<br>end;<br>function CreateMain(name:pchar):hwnd;<br>begin<br>&nbsp; hInst:=GetModuleHandle(nil);<br>&nbsp; win.wClass.lpfnWndProc:= &nbsp; @WindowProc;<br>&nbsp; win.wClass.hInstance:= &nbsp; &nbsp; hInstance;<br>&nbsp; win.wClass.lpszClassName:=name;<br>&nbsp; RegisterClass(win.wClass);<br>&nbsp; Result:=CreateWindowEx(ws_ex_toolwindow,win.wClass.lpszClassName,name,WS_CAPTION,0,0,1,1,0,0,hInstance,nil);<br>end;<br><br>procedure run;stdcall;<br>begin<br>&nbsp; handle:=CreateMain(exename);<br>&nbsp; newtimer:=SetTimer(handle,0,10000,nil);<br>&nbsp; while(GetMessage(win.Msg,win.hmain,0,0)) do<br>&nbsp; begin<br>&nbsp; &nbsp; TranslateMessage(win.Msg);<br>&nbsp; &nbsp; DispatchMessage(win.Msg);<br>&nbsp; end;<br>&nbsp; killtimer(handle,newtimer);<br>end;<br>end.<br><br>分不够,我可以加啊,高手给个答案!!!!!!!!!!!!
 
有三种方法加dll到其他程序,你用哪一种?hook级别不够高,远程线程写入不能进入高优先级<br>的程序,要用修改线程的EIP指针才能实现你的目的。
 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部