8 Aug
2019
8 Aug
'19
2:10 a.m.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> --- include/ntdef.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/ntdef.h b/include/ntdef.h index 83ecffd608..014102ac74 100644 --- a/include/ntdef.h +++ b/include/ntdef.h @@ -43,4 +43,9 @@ typedef enum _WAIT_TYPE { } #endif +#define NT_SUCCESS(status) (((NTSTATUS)(status)) >= 0) +#define NT_INFORMATION(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x40000000) +#define NT_WARNING(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x80000000) +#define NT_ERROR(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0xc0000000) + #endif /* _NTDEF_ */ -- 2.22.0