mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-23 22:05:36 +08:00
12 lines
376 B
C++
12 lines
376 B
C++
#include"mirage.h"
|
|
|
|
bool mirage::attach_function() {
|
|
//[031219][mirage] そこに海があって
|
|
ULONG addr = MemDbg::findCallerAddress((DWORD)TextOutA,0x90909090,processStartAddress,processStopAddress);
|
|
if (!addr) return false;
|
|
HookParam hp;
|
|
hp.address = addr+4;
|
|
hp.offset=get_stack(1);
|
|
hp.type = DATA_INDIRECT|USING_CHAR;
|
|
return NewHook(hp, "mirage");
|
|
}
|