<String id="0xA3774AB6"></String>
static const char* (*g_origGetText)(void* theText, int a2, uint32_t* hash, int* a4);
static const char* GetText(void* theText, int a2, uint32_t* hash, int* a4)
{
如果 (*hash == 0xA3774AB6){
返回“”;
}
返回 g_origGetText(文本内容, 参数2, 哈希值, 参数4);
}
//将此代码放入初始化部分。CreateHookAndNotifyAnyError是MH_CreateHook的封装函数,会在出错时向用户发出提示。
//如果出现问题,则显示一个消息框。
创建钩子并通知任何错误(hook::get_pattern("48 81 C1 D0 00 00 00 E8 ? ? ? ? 48 8B CE 83 FB FF 74 ? 44 8B 44 24 50", -57), GetText, (void**)&g_origGetText);