Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5702

MSHook的原理是这样写的吗

$
0
0

@leaveMeAlone wrote:

void MyHookMessageEx(Class aClass ,SEL oldSEL ,IMP imp1 ,IMP* imp2)
{
Method oldMethod = class_getInstanceMethod(aClass, oldSEL);
*imp2 = method_getImplementation(oldMethod);
method_setImplementation(oldMethod, imp1);
}
为什么这样写的不起作用呢

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles