summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-24 21:03:38 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:52 -0500
commitff121de13267c16601e7a71e6b8240406a37fb1b (patch)
tree1671f4b439122b5a6f00f275e1f6655c352dddc3 /include
parent84192873bf59ccdb97cfd751130f072c258acbe7 (diff)
downloadperk-ff121de13267c16601e7a71e6b8240406a37fb1b.tar.bz2
perk-ff121de13267c16601e7a71e6b8240406a37fb1b.tar.xz
perk.h: enum pe_custom_error(): definition and integration.
Diffstat (limited to 'include')
-rw-r--r--include/perk/perk.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index bb2a05b..5951fa6 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -28,10 +28,6 @@ extern "C" {
#define PERK_BAD_OPT_VAL 0x03
#define PERK_IO_ERROR 0xA0
#define PERK_MAP_ERROR 0xA1
-#define PERK_BAD_DOS_HEADER 0xA2
-#define PERK_BAD_COFF_HEADER 0xA3
-#define PERK_BAD_IMAGE_TYPE 0xA4
-#define PERK_MALFORMED_IMAGE 0xA5
/* driver flags */
#define PERK_DRIVER_VERBOSITY_NONE 0x0000
@@ -52,6 +48,21 @@ extern "C" {
#define PERK_ERROR_CHILD 0x0004
#define PERK_ERROR_CUSTOM 0x0008
+enum pe_custom_error {
+ PERK_ERR_FLOW_ERROR,
+ PERK_ERR_FLEE_ERROR,
+ PERK_ERR_NULL_CONTEXT,
+ PERK_ERR_NULL_IMAGE,
+ PERK_ERR_INVALID_CONTEXT,
+ PERK_ERR_INVALID_IMAGE,
+ PERK_ERR_IMAGE_SIZE_ZERO,
+ PERK_ERR_IMAGE_MALFORMED,
+ PERK_ERR_BAD_DOS_HEADER,
+ PERK_ERR_BAD_COFF_HEADER,
+ PERK_ERR_BAD_IMAGE_TYPE,
+ PERK_ERR_CAP,
+};
+
struct pe_source_version {
int major;
int minor;