diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/perk/perk.h | 19 |
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; |