mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-05 03:25:37 +08:00
13 lines
409 B
C++
13 lines
409 B
C++
#include"GSX.h"
|
|
|
|
|
|
bool GSX::attach_function() {
|
|
//http://www.mirai-soft.com/products/persona/download.html
|
|
ULONG addr = MemDbg::findCallerAddress((ULONG)::GetCharWidth32W, 0xec8b55, processStartAddress, processStopAddress);
|
|
if(addr==0)return false;
|
|
HookParam hp;
|
|
hp.address=addr;
|
|
hp.type=USING_CHAR|CODEC_UTF16|DATA_INDIRECT;
|
|
hp.offset=get_stack(4);
|
|
return NewHook(hp,"GSX");
|
|
}
|