27 #ifndef ZYDIS_STATUS_H
28 #define ZYDIS_STATUS_H
149 #define ZYDIS_SUCCESS(status) (status == ZYDIS_STATUS_SUCCESS)
156 #define ZYDIS_CHECK(status) \
159 ZydisStatus s = status; \
160 if (!ZYDIS_SUCCESS(s)) \
Includes and defines some default datatypes.
uint32_t ZydisStatus
Defines the ZydisStatus datatype.
Definition: Status.h:43
ZydisStatusCode
Values that represent a zydis status-codes.
Definition: Status.h:49
@ 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:79
@ ZYDIS_STATUS_MALFORMED_MVEX
An error occured while decoding the MVEX-prefix.
Definition: Status.h:118
@ ZYDIS_STATUS_IMPOSSIBLE_INSTRUCTION
Definition: Status.h:128
@ ZYDIS_STATUS_INSUFFICIENT_BUFFER_SIZE
A buffer passed to a function was too small to complete the requested operation.
Definition: Status.h:69
@ ZYDIS_STATUS_INVALID_MASK
An invalid write-mask was specified for an EVEX/MVEX instruction.
Definition: Status.h:122
@ ZYDIS_STATUS_ILLEGAL_LEGACY_PFX
A legacy-prefix (F2, F3, 66) was found while decoding a XOP/VEX/EVEX/MVEX instruction.
Definition: Status.h:102
@ ZYDIS_STATUS_ILLEGAL_LOCK
A lock-prefix (F0) was found while decoding an instruction that does not support locking.
Definition: Status.h:97
@ ZYDIS_STATUS_ILLEGAL_REX
A rex-prefix was found while decoding a XOP/VEX/EVEX/MVEX instruction.
Definition: Status.h:106
@ ZYDIS_STATUS_SUCCESS
The operation completed successfully.
Definition: Status.h:57
@ ZYDIS_STATUS_USER
The base value for user-defined status codes.
Definition: Status.h:137
@ ZYDIS_STATUS_INVALID_PARAMETER
An invalid parameter was passed to a function.
Definition: Status.h:61
@ ZYDIS_STATUS_DECODING_ERROR
An general error occured while decoding the current instruction.
Definition: Status.h:84
@ ZYDIS_STATUS_INSTRUCTION_TOO_LONG
The instruction exceeded the maximum length of 15 bytes.
Definition: Status.h:88
@ ZYDIS_STATUS_INVALID_OPERATION
An attempt was made to perform an invalid operation.
Definition: Status.h:65
@ ZYDIS_STATUS_BAD_REGISTER
The instruction encoded an invalid register.
Definition: Status.h:92
@ ZYDIS_STATUS_INVALID_MAP
An invalid opcode-map value was found while decoding a XOP/VEX/EVEX/MVEX-prefix.
Definition: Status.h:110
@ ZYDIS_STATUS_MALFORMED_EVEX
An error occured while decoding the EVEX-prefix.
Definition: Status.h:114