[PATCH 1/5] include: Add NTSTATUS severity macros.
Zebediah Figura
z.figura12 at gmail.com
Wed Aug 7 21:10:11 CDT 2019
Signed-off-by: Zebediah Figura <z.figura12 at 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
More information about the wine-devel
mailing list