📄 subject_18549.htm
字号:
<p>
序号:18549 发表者:xiongli 发表日期:2002-10-21 19:14:42
<br>主题:为什么hook都要弄成一个dll?????
<br>内容:一般做法都是写一个dll,在dll到处函数installdll()里面放一个sethook,参数是dll里面的一个call back函数.然后在程序中loadlib dll,然后调用installdll()来设定hook<BR><BR>我的问题是:为什么要用dll??我直接在程序里面sethook,然后指定程序里面的一个call back function当作hook prodrcer function不可以吗?????
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:混混 回复日期:2002-10-21 19:32:10
<br>内容:一般只有捕作全局消息时可用 dll<BR><BR>自己用也可以不用dll的
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:*** 回复日期:2002-10-21 19:42:22
<br>内容:That is because the HOOK dll will be loaded by OS<BR>so what form of codes do u want the OS to load ?<BR>yes, it is a dll. And software modules are delivered in<BR>DLL .static LIB and exe, three forms (only I know, maybe u know more)<BR>only dll can be shared by all processes running on system.<BR>OS must use dll (mapping file, actually) to map it to all<BR>the address space of the other processes.<BR>2002-10-21 19:59:16
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -