-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathGameHelper.cpp
61 lines (43 loc) · 1.1 KB
/
GameHelper.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// GameHelper.cpp: 定义 DLL 的初始化例程。
//
#include "pch.h"
#include "framework.h"
#include "GameHelper.h"
#include "CGameHelperDlg.h"
#include "BaseAddress.h"
#include "Common.h"
#include "BaseAddress.h"
#include "OffsetAddr.h"
#include "Logger.h"
using namespace std;
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP(CGameHelperApp, CWinApp)
END_MESSAGE_MAP()
CGameHelperApp::CGameHelperApp()
{
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}
// 唯一的 CGameHelperApp 对象
CGameHelperApp theApp;
CGameHelperDlg* theDlg;
// 窗口显示代码
DWORD WINAPI ShowDlg(LPARAM lpData)
{
theDlg = new CGameHelperDlg;
theDlg->DoModal();
delete theDlg;
FreeLibraryAndExitThread(theApp.m_hInstance, 1);
return TRUE;
}
// CGameHelperApp 初始化
BOOL CGameHelperApp::InitInstance()
{
CWinApp::InitInstance();
公告(L"辅助加载成功!");
WriteLog(L"辅助加载成功!");
::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ShowDlg, NULL, 0, 0);
return TRUE;
}