windows-drivers-rs
windows-drivers-rs copied to clipboard
Add more precise NTSTATUS const fns.
The current NT_SUCCESS macro checks for NTSTATUS >= 0. While this is semantically equivalent to the official behavior I think it is appropriate to match MSDN documentation exactly.
This PR also adds the other NT_ macros for information, warning, and error values.
Reference: https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/using-ntstatus-values