求助:hook CreateTextServices

fisher_older 2011-10-01 11:22:11
看了“浅谈API HOOK技术”,能够hook住大部分API函数,如textout等。但是尝试hook CreateTextServices始终不成功。发现RepointFunction(@OldCreateTextServices, @MyCreateTextServices);返回值始终是零。

有做过的大侠吗?能否赐教一二?
...全文
166 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
fisher_older 2011-10-25
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 lactoferrin 的回复:]
你可以直接LoadLibrary+GetProcAddress来得到CreateTextServices的地址
[/Quote]

感谢列宁。好人做到底,怎么注入啊?
Lactoferrin 2011-10-22
  • 打赏
  • 举报
回复
你可以直接LoadLibrary+GetProcAddress来得到CreateTextServices的地址
fisher_older 2011-10-22
  • 打赏
  • 举报
回复
至于TCreateTextServices的定义请参照:

pages.cs.wisc.edu/~rkennedy/q&a-files/TOM.pas

不知道能不能这样用?
fisher_older 2011-10-22
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 lactoferrin 的回复:]
OldCreateTextServices怎么来的
[/Quote]

type
TCreateTextServices = function(punkOuter: IUnknown; pITextHost: ITextHost; out ppUnk): HResult; stdcall;

var
OldCreateTextServices : TCreateTextServices;
Lactoferrin 2011-10-22
  • 打赏
  • 举报
回复
OldCreateTextServices怎么来的
fisher_older 2011-10-09
  • 打赏
  • 举报
回复
再次求助!
fisher_older 2011-10-04
  • 打赏
  • 举报
回复
高手呢?快出来吧!
fisher_older 2011-10-01
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 jingtuzhong 的回复:]
需要解决的问题就是过滤Richedit的指针
[/Quote]

请佛祖明示。
jingtuzhong 2011-10-01
  • 打赏
  • 举报
回复
需要解决的问题就是过滤Richedit的指针

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧