-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsdk_versions.h
executable file
·106 lines (85 loc) · 2.66 KB
/
sdk_versions.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
Copyright (c) 2004-2010, Chris Eagle
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __SDK_VERSIONS_H
#define __SDK_VERSIONS_H
#include <ida.hpp>
#include <idp.hpp>
#include <bytes.hpp>
#include <segment.hpp>
/*
//Ida 4.3
#define IDP_INTERFACE_VERSION 61
//Ida 4.4
#define IDP_INTERFACE_VERSION 62
//Ida 4.5
#define IDP_INTERFACE_VERSION 63
//Ida 4.6
#define IDP_INTERFACE_VERSION 66
//Ida 4.6sp1
#define IDP_INTERFACE_VERSION 67
//Ida 4.7
#define IDP_INTERFACE_VERSION 70
//Ida 4.8
#define IDP_INTERFACE_VERSION 75
//Ida 4.9, 4.9sp, 5.0, 5.1
#define IDP_INTERFACE_VERSION 76
*/
#define SDK_VERSION_430 61
#define SDK_VERSION_440 62
#define SDK_VERSION_450 63
#define SDK_VERSION_460 66
#define SDK_VERSION_460sp1 67
#define SDK_VERSION_470 70
#define SDK_VERSION_480 75
#define SDK_VERSION_490 76
#define SDK_VERSION_500 76
#define SDK_VERSION_510 76
//prior to SDK490, SDK versions can be mapped to IDP_INTERFACE_VERSION
#if IDP_INTERFACE_VERSION == SDK_VERSION_430
#define IDA_SDK_VERSION 430
#endif
#if IDP_INTERFACE_VERSION == SDK_VERSION_440
#define IDA_SDK_VERSION 440
#endif
#if IDP_INTERFACE_VERSION == SDK_VERSION_450
#define IDA_SDK_VERSION 450
#endif
#if IDP_INTERFACE_VERSION == SDK_VERSION_460
#define IDA_SDK_VERSION 460
#endif
#if IDP_INTERFACE_VERSION == SDK_VERSION_460sp1
#define IDA_SDK_VERSION 461
#endif
#if IDP_INTERFACE_VERSION == SDK_VERSION_470
#define IDA_SDK_VERSION 470
#endif
#if IDP_INTERFACE_VERSION == SDK_VERSION_480
#define IDA_SDK_VERSION 480
#endif
/* beginning with SDK520, IDA_SDK_VERSION is defined in pro.h */
#ifndef IDA_SDK_VERSION //SDK520 and later
#if IDP_INTERFACE_VERSION == 76 //SDK490 and later
#ifdef DOUNK_SIMPLE //defined in bytes.hpp in SDK510
#define IDA_SDK_VERSION 510
#else //DOUNK_SIMPLE
#ifdef SEGDEL_PERM //defined in segment.hpp in SDK500
#define IDA_SDK_VERSION 500
#else //SEGDEL_PERM
#define IDA_SDK_VERSION 490
#endif //SEGDEL_PERM
#endif //DOUNK_SIMPLE
#endif //IDP_INTERFACE_VERSION == 76
#endif //IDA_SDK_VERSION
#endif