32 #ifndef ZYDIS_STATUS_H
33 #define ZYDIS_STATUS_H
157 #define ZYDIS_SUCCESS(status) (status == ZYDIS_STATUS_SUCCESS)
164 #define ZYDIS_CHECK(status) \
167 ZydisStatus s = status; \
168 if (!ZYDIS_SUCCESS(s)) \
Includes and defines some default datatypes.
uint32_t ZydisStatus
Defines the ZydisStatus datatype.
Definition: Status.h:48
ZydisStatusCode
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_MALFORMED_MVEX
An error occured while decoding the MVEX-prefix.
Definition: Status.h:123
@ ZYDIS_STATUS_IMPOSSIBLE_INSTRUCTION
Definition: Status.h:133
@ 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:142
@ 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