新增UI修改

This commit is contained in:
2022-03-06 09:47:55 +08:00
parent 378f4ba664
commit 2e28352b42
5 changed files with 244 additions and 64 deletions

View File

@@ -38,6 +38,24 @@ uint32_t NewPushString(uint32_t v, wchar_t* f, int freeVarsCnt)
return MLSqPushString(v, f, freeVarsCnt);
}
static DrawTe* Cbuffer = NULL;
int Tihuan(DWORD thisc,int a2, int a3, int a4, int a5, int a6, __int64 a7, float a8, float a9, float a10, int a11, int a12)
{
std::cout << a2 << std::endl;
std::cout << a3 << std::endl;
std::cout << a4 << std::endl;
std::cout << a5 << std::endl;
std::cout << a6 << std::endl;
std::cout << a7 << std::endl;
std::cout << a8 << std::endl;
std::cout << a9 << std::endl;
std::cout << a10 << std::endl;
std::cout << a11 << std::endl;
std::cout << a12 << std::endl;
return Cbuffer(thisc,a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
}
@@ -45,20 +63,23 @@ int HOOK()
{
std::cout << u8"开始hook" << std::endl;
if (MH_Initialize() != MH_OK)//初始化Hook
{
return 1;
}
/*
if (MH_CreateHook((void*)0x9536C0, &tihuancall,
reinterpret_cast<void**>(&BCBB)) != MH_OK)
if (MH_CreateHook((void*)0x11D07D0, &Tihuan,
reinterpret_cast<void**>(&Cbuffer)) != MH_OK)
{
return 2;
}
// Enable the hook for MessageBoxW.
if (MH_EnableHook((void*)0x9536C0) != MH_OK)
if (MH_EnableHook((void*)0x11D07D0) != MH_OK)
{
return 3;
}
*/
/*
if (MH_CreateHook((void*)0x1358A60, &NewClosure,
@@ -138,7 +159,7 @@ BOOL APIENTRY DllMain( HMODULE hModule,
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
//HOOK();
Lenheart();
break;
case DLL_THREAD_ATTACH: