summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-14 23:09:50 -0500
committermidipix <writeonce@midipix.org>2016-11-14 23:31:16 -0500
commit8c7b6a92a909c0fa269439ce06335e7b60baa451 (patch)
tree2ed2d8010f5b674b30904321cf401a16c9a90260 /include
parent919d9d87594df2511a4bf81cfb2d6ceccb4ebe33 (diff)
downloadperk-8c7b6a92a909c0fa269439ce06335e7b60baa451.tar.bz2
perk-8c7b6a92a909c0fa269439ce06335e7b60baa451.tar.xz
info api: pe_get_image_abi(): initial implementation.
Diffstat (limited to 'include')
-rw-r--r--include/perk/perk.h1
-rw-r--r--include/perk/perk_meta.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index 895e4a8..88aed0b 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -193,6 +193,7 @@ perk_api int pe_get_expsym_by_name (const struct pe_image_meta *, const char *
perk_api int pe_get_expsym_by_index (const struct pe_image_meta *, unsigned index, struct pe_expsym * optional);
/* info api */
+perk_api int pe_get_image_abi (const struct pe_image_meta *, struct pe_info_string * optional);
perk_api int pe_get_image_subtype (const struct pe_image_meta *, struct pe_info_string * optional);
perk_api int pe_get_image_subsystem (const struct pe_image_meta *, struct pe_info_string * optional);
perk_api int pe_get_image_framework (const struct pe_image_meta *, struct pe_info_string * optional);
diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h
index d39e652..2232085 100644
--- a/include/perk/perk_meta.h
+++ b/include/perk/perk_meta.h
@@ -7,6 +7,13 @@ extern "C" {
#include <stdint.h>
+enum pe_abi {
+ PE_ABI_UNSUPPORTED,
+ PE_ABI_PE32,
+ PE_ABI_PE64,
+ PE_ABI_CAP
+};
+
enum pe_subtype {
PE_SUBTYPE_UNRECOGNIZED,
PE_SUBTYPE_DLL,