32 #ifndef ZYDIS_STATUS_H
33 #define ZYDIS_STATUS_H
167 #define ZYDIS_SUCCESS(status) (status == ZYDIS_STATUS_SUCCESS)
174 #define ZYDIS_CHECK(status) \
177 ZydisStatus status_038560234 = status; \
178 if (!ZYDIS_SUCCESS(status_038560234)) \
180 return status_038560234; \
Includes and defines some default datatypes.
uint32_t ZydisU32
Definition: CommonTypes.h:47
ZydisStatusCodes
Values that represent a zydis status-codes.
Definition: Status.h:54
@ ZYDIS_STATUS_NO_MORE_DATA
An attempt was made to read data from an input data-source that has no more data available.
Definition: Status.h:84
@ ZYDIS_STATUS_SKIP_OPERAND
Returning this status code in operand-related custom formatter callbacks will cause the formatter to ...
Definition: Status.h:137
@ ZYDIS_STATUS_MALFORMED_MVEX
An error occured while decoding the MVEX-prefix.
Definition: Status.h:123
@ ZYDIS_STATUS_IMPOSSIBLE_INSTRUCTION
Definition: Status.h:143
@ ZYDIS_STATUS_INSUFFICIENT_BUFFER_SIZE
A buffer passed to a function was too small to complete the requested operation.
Definition: Status.h:74
@ ZYDIS_STATUS_INVALID_MASK
An invalid write-mask was specified for an EVEX/MVEX instruction.
Definition: Status.h:127
@ ZYDIS_STATUS_ILLEGAL_LEGACY_PFX
A legacy-prefix (F2, F3, 66) was found while decoding a XOP/VEX/EVEX/MVEX instruction.
Definition: Status.h:107
@ ZYDIS_STATUS_ILLEGAL_LOCK
A lock-prefix (F0) was found while decoding an instruction that does not support locking.
Definition: Status.h:102
@ ZYDIS_STATUS_ILLEGAL_REX
A rex-prefix was found while decoding a XOP/VEX/EVEX/MVEX instruction.
Definition: Status.h:111
@ ZYDIS_STATUS_SUCCESS
The operation completed successfully.
Definition: Status.h:62
@ ZYDIS_STATUS_USER
The base value for user-defined status codes.
Definition: Status.h:152
@ ZYDIS_STATUS_INVALID_PARAMETER
An invalid parameter was passed to a function.
Definition: Status.h:66
@ ZYDIS_STATUS_DECODING_ERROR
An general error occured while decoding the current instruction.
Definition: Status.h:89
@ ZYDIS_STATUS_INSTRUCTION_TOO_LONG
The instruction exceeded the maximum length of 15 bytes.
Definition: Status.h:93
@ ZYDIS_STATUS_INVALID_OPERATION
An attempt was made to perform an invalid operation.
Definition: Status.h:70
@ ZYDIS_STATUS_BAD_REGISTER
The instruction encoded an invalid register.
Definition: Status.h:97
@ ZYDIS_STATUS_INVALID_MAP
An invalid opcode-map value was found while decoding a XOP/VEX/EVEX/MVEX-prefix.
Definition: Status.h:115
@ ZYDIS_STATUS_MALFORMED_EVEX
An error occured while decoding the EVEX-prefix.
Definition: Status.h:119
ZydisU32 ZydisStatus
Defines the ZydisStatus datatype.
Definition: Status.h:48