This repository was archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathPage1.h
More file actions
59 lines (42 loc) · 1.32 KB
/
Copy pathPage1.h
File metadata and controls
59 lines (42 loc) · 1.32 KB
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
#pragma once
#include "E-Debug.h"
typedef struct LIBMAP
{
vector<string> Command_name;
vector<DWORD> Command_addr;
}*LibMap;
#define MAX_ESIZE 256
// CPage1 对话框
class CPage1 : public CDialog
{
DECLARE_DYNAMIC(CPage1)
public:
CPage1(CWnd* pParent = NULL); // 标准构造函数
virtual ~CPage1();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_PAGE1 };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
CDialog* GetHwnd();
virtual BOOL OnInitDialog();
BOOL MatchCode_FAST(UCHAR* FuncSrc, UCHAR* BinCode, int length); //参数一与参数二对比,参数三为对比长度
bool MatchCode_UnEx(unsigned char* pSrc1, unsigned char* pSrc2, int nLen);//
CListCtrl m_lib;
CListCtrl m_command;
map<int, LIBMAP> m_map;
afx_msg void OnNMClickListlib(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnLvnColumnclickListcommand(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMDblclkListcommand(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMRClickListcommand(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void On32771();
UINT Currentindex = 0;
map<string, string> m_subFunc;
map<string, string> m_Func;
map<ULONG, string> m_RFunc; //R代表Runtime
BOOL IsValidAddr(ULONG addr);
BOOL MatchCode(UCHAR* FuncAddr, string& FuncTxt);//函数地址与函数文本相匹配
};