diff options
author | midipix <writeonce@midipix.org> | 2016-11-14 22:45:44 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-14 22:58:52 -0500 |
commit | 6aec968c10e0d0c4509cf7d6930e3715175fae67 (patch) | |
tree | b2827dff4dd55687c068e07b5c81a5e733856967 /include | |
parent | a9703089dc298372a20c2ccbc9ad7639557ad1f6 (diff) | |
download | perk-6aec968c10e0d0c4509cf7d6930e3715175fae67.tar.bz2 perk-6aec968c10e0d0c4509cf7d6930e3715175fae67.tar.xz |
info api: pe_get_image_subtype(): initial implementation.
Diffstat (limited to 'include')
-rw-r--r-- | include/perk/perk.h | 1 | ||||
-rw-r--r-- | include/perk/perk_meta.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h index af63b33..895e4a8 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_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 fc8c268..d39e652 100644 --- a/include/perk/perk_meta.h +++ b/include/perk/perk_meta.h @@ -7,6 +7,14 @@ extern "C" { #include <stdint.h> +enum pe_subtype { + PE_SUBTYPE_UNRECOGNIZED, + PE_SUBTYPE_DLL, + PE_SUBTYPE_EXE, + PE_SUBTYPE_OBJ, + PE_SUBTYPE_CAP +}; + enum pe_framework { PE_FRAMEWORK_UNKNOWN, PE_FRAMEWORK_FREESTD, |