-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMain.cpp
More file actions
55 lines (44 loc) · 1.28 KB
/
Copy pathMain.cpp
File metadata and controls
55 lines (44 loc) · 1.28 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
// ****************************************************************************
// File: Main.cpp
// Desc: Function String Associate plug-in
//
// ****************************************************************************
#include "stdafx.h"
// === Function Prototypes ===
int idaapi IDAP_init();
void idaapi IDAP_term();
void idaapi IDAP_run(int arg);
extern void CORE_Init();
extern void CORE_Process(int iArg);
extern void CORE_Exit();
// === Data ===
const static char IDAP_name[] = "Function String Associate";
// Plug-in description block
extern "C" ALIGN(32) plugin_t PLUGIN =
{
IDP_INTERFACE_VERSION, // IDA version plug-in is written for
PLUGIN_UNL, // Plug-in flags
IDAP_init, // Initialization function
IDAP_term, // Clean-up function
IDAP_run, // Main plug-in body
IDAP_name, // Comment - unused
IDAP_name, // As above - unused
IDAP_name, // Plug-in name shown in Edit->Plugins menu
NULL // Hot key to run the plug-in
};
// Init
int idaapi IDAP_init()
{
CORE_Init();
return(PLUGIN_OK);
}
// Un-init
void idaapi IDAP_term()
{
CORE_Exit();
}
// Run
void idaapi IDAP_run(int iArg)
{
CORE_Process(iArg);
}