This commit is contained in:
2022-09-06 00:08:26 +08:00
parent e17ffc3965
commit 91d57c13f0
232 changed files with 191628 additions and 250 deletions

View File

@@ -1,4 +1,6 @@
// dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "pch.h"
@@ -14,7 +16,12 @@ void LenheartThread()
{
Sleep(10);
static int ;
if (DNFTOOL::GetHook(0x1A5FB4C, "0x14+0x28+") == 6) = 1;
if (DNFTOOL::GetHook(0x1A5FB4C, "0x14+0x28+") == 6)
{
//imguiC* ImguiObj = new imguiC();
//ImguiObj->Run();
= 1;
}
if ( == 1)
{
//获取验证服务器ip
@@ -77,7 +84,6 @@ void LenheartThread()
if (absnum < 18000)
{
return;
Sleep(300000);
}
else
{
@@ -95,11 +101,15 @@ void LenheartThread()
__declspec(dllexport) void Lenheart()
{
DWORD threadID;
HANDLE Thand = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)LenheartThread, NULL, 0, &threadID);
//Sleep(300000);
//CloseHandle(Thand);//销毁线程
//return Lenheart();
}
void InitD3d()
{
imguiC *ImguiObj = new imguiC();
ImguiObj->Run();
}
@@ -113,15 +123,17 @@ BOOL APIENTRY DllMain( HMODULE hModule,
{
case DLL_PROCESS_ATTACH:
#if defined COUTWINDOWS_SWITCH
AllocConsole();
freopen(("CONOUT$"), ("w"), stdout);
freopen(("CONOUT$"), ("w"), stderr);
freopen(("CONIN$"), ("r"), stdin);
#endif
//getchar();
hook::RegisterHook();
Lenheart();
//::CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)InitD3d, NULL, NULL, NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH: