-
Notifications
You must be signed in to change notification settings - Fork 0
/
MDRipper_add.h
74 lines (66 loc) · 1.55 KB
/
MDRipper_add.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// MDRipper.h : main header file for the PROJECT_NAME application
//
#pragma once
#include <sstream>
#include <iomanip>
#include <vector>
using namespace std;
typedef struct _versionDATA
{
string unitID;
DWORD addrCCRYPTVALUE;
DWORD addrPASSWORDREC;
DWORD addrACCOUNTREC;
DWORD sizeACCOUNTREC;
DWORD offsetACCOUNTUSER;
DWORD offsetACCOUNTPASSWORD;
// default constructor
_versionDATA()
{
unitID = "";
addrCCRYPTVALUE = 0;
addrPASSWORDREC = 0;
addrACCOUNTREC = 0;
sizeACCOUNTREC = 0;
offsetACCOUNTUSER = 0;
offsetACCOUNTPASSWORD = 0;
};
// constructor
_versionDATA(const string _unitID,
const DWORD _addrCCRYPTVALUE,
const DWORD _addrPASSWORDREC,
const DWORD _addrACCOUNTREC,
const DWORD _sizeACCOUNTREC,
const DWORD _offsetACCOUNTUSER,
const DWORD _offsetACCOUNTPASSWORD)
{
unitID = _unitID;
addrCCRYPTVALUE = _addrCCRYPTVALUE;
addrPASSWORDREC = _addrPASSWORDREC;
addrACCOUNTREC = _addrACCOUNTREC;
sizeACCOUNTREC = _sizeACCOUNTREC;
offsetACCOUNTUSER = _offsetACCOUNTUSER;
offsetACCOUNTPASSWORD = _offsetACCOUNTPASSWORD;
};
} versionDATA;
vector<versionDATA> releases(3);
class ErrorClass
{
public:
ErrorClass(int err, char* title, DWORD errorword = 0, char* string = "")
{
ErrorType = err;
ErrorWord = errorword;
strcpy_s(ErrorTitle, title);
strcpy_s(ErrorString, string);
};
~ErrorClass()
{
};
int ErrorType;
DWORD ErrorWord;
char ErrorString[255];
char ErrorTitle[255];
};
enum errorclass { SYSTEM_ERROR = 1, SYSTEM_ERROR2, APPLICATION_ERROR, APPLICATION_ERROR2 };
enum BC { BC8 = 0, BC10, BC11 };