-
Notifications
You must be signed in to change notification settings - Fork 5
/
PatchDlg.h
74 lines (68 loc) · 3.01 KB
/
PatchDlg.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
#pragma once
#include "ENGINE/ENGINE_Profile_operations.h"
#include "ENGINE/ENGINE_MAP_operations.h"
// äèàëîãîâîå îêíî CPatchDlg
#define codedef_check_term_threadif(threadid) if(threadid != NULL) ::TerminateThread(threadid, 1); threadid = NULL
#define codedef_check_free_allocatedif(allocmem) if(allocmem != NULL) free(allocmem); allocmem = NULL
class CPatchDlg : public CDialogEx
{
DECLARE_DYNAMIC(CPatchDlg)
public:
CPatchDlg(CWnd* pParent = NULL); // ñòàíäàðòíûé êîíñòðóêòîð
virtual ~CPatchDlg();
bool Fill_Not_applied_PATCH_profiles_list(void);
bool Fill_ONLINE_PATCH_profiles_list(void);
bool Load_Region_support_area_config(void);
bool Fill_PATCH_enumerator(pDH_ENUM_FILES_of_PROFILES EnumFilesArray, HWND ListHandle, size_t i_count);
void Fill_SUPPORT_REGION_AREA(void);
void Fill_Partially_Q_report(void);
static void __fastcall Fill_AntiRewrite_list_report(__in LPVOID Param, __in pPATCH_SNAPSHOT pFirst_snap, __in size_t how_count_to_end, __in size_t how_count_all_snap_with_rewrites);
void GUI_UPDATE_AFTER_FILL_PROFILE(void);
static DH_ENUM_FILES_of_PROFILES Not_applied_patch_file_lists[MAX_CONTAINTER_FILES];
static DH_ENUM_FILES_of_PROFILES ONLINE_patch_file_lists[MAX_CONTAINTER_FILES];
HANDLE hAntiRewriteSentinel;
// Äàííûå äèàëîãîâîãî îêíà
enum { IDD = IDD_PATCH_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // ïîääåðæêà DDX/DDV
pPATCH_SUPPORTING_REGION_INI_STACK pActive_Support_region; //êîíôèãóðàöèÿ ðåãèîíîâ ïîääåðæêè
static DWORD WINAPI GUI_UPDATE_Sentinel_requests(LPVOID Param);
pPATCH_SNAPSHOT pEnumPatchSnapshot;
pPATCH_SNAPSHOT fpEnumPatchSnapshot;
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
// CListCtrl m_na_list;
// CListCtrl m_online_list;
CListCtrl m_list_na;
CListCtrl m_list_online;
afx_msg void OnLvnItemchangedNotAppliedList(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedApplyNaStackButton();
CButton m_CHECK_auto_alloc_hook_and_filter_region;
CButton m_CHECK_auto_alloc_original_vm_region;
CButton m_CHECK_auto_alloc_patch_map_region;
CStatic m_LAMP_patch_map_region;
CStatic m_LAMP_hook_and_filter_region;
CStatic m_LAMP_original_copy_region;
CStatic m_LAMP_vmp_section_determine;
CEdit m_EDIT_hook_and_filter_addres_start;
CEdit m_EDIT_hook_and_filter_addres_end;
CEdit m_EDIT_original_copy_vmp_addres_start;
CEdit m_EDIT_original_copy_vmp_addres_end;
CEdit m_EDIT_patch_map_addres_start;
CEdit m_EDIT_patch_map_addres_end;
CEdit m_EDIT_vmp_section_name;
CEdit m_EDIT_VMP_SECTION_Addres_start;
CEdit m_EDIT_VMP_SECTION_size;
CButton m_BUTTON_APPLY_NA_STACK;
CEdit m_EDIT_SUCCESS_NA_APPLY_COUNT;
// CButton m_check_antirewrite_sentinel;
CButton m_CHECK_antirewrite_sentinel;
CListCtrl m_LIST_antirewrite;
afx_msg void OnBnClickedCheckAntirewriteSentinel();
// CButton m_EDIT_antirewrite_sentinel_count;
CEdit m_EDIT_antirewrite_sentinel_count;
CEdit m_EDIT_Q_Online_patches_count;
CEdit m_EDIT_Q_NA_Patches_count;
CEdit m_EDIT_Q_Rewrite_addreses_count;
};