-
Notifications
You must be signed in to change notification settings - Fork 68
/
studData.h
54 lines (41 loc) · 1.03 KB
/
studData.h
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
#pragma once
/*
类名称:studData
用途:stud数据相关操作
时间:2018/12/1
修改日期:2018/12/2
*/
class studData
{
public:
studData();
~studData();
public:
BOOL puInit(CString csFilePath, const DWORD dwOEP) {
m_MasterFilePath = csFilePath.GetString();
return this->InitStuData(dwOEP);
}
void puLoadLibraryStud(){ this->LoadLibraryStud(); }
void puRepairReloCationStud(){ this->RepairReloCationStud(); }
BOOL puCopyStud(){ return this->CopyStud(); }
void puClearStuData();
private:
BOOL InitStuData(const DWORD dwOEP);
BOOL LoadLibraryStud();
BOOL RepairReloCationStud();
BOOL CopyStud();
private:
void* dexportAddress = 0; // main
void* WinMain = 0; // WinMain
void* m_studBase = nullptr;
void* m_lpBase = nullptr;
DWORD m_dwNewSectionAddress = 0;
DWORD64 m_dwNewSectionAddress64 = 0;
DWORD m_dwStudSectionAddress = 0;
DWORD64 m_dwStudSectionAddress64 = 0;
DWORD64 m_OldOEP = 0;
DWORD m_ImageBase = 0;
DWORD64 m_ImageBase64 = 0;
CString m_MasterFilePath;
};
using SingleStudData = ustdex::Singleton<studData>;