LunaHook-mirror/LunaHook/engine32/GSX.cpp
恍兮惚兮 d3dbbd46bb gsx
2024-04-05 02:41:03 +08:00

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");
}