windows-drivers-rs icon indicating copy to clipboard operation
windows-drivers-rs copied to clipboard

Add more precise NTSTATUS const fns.

Open NateD-MSFT opened this issue 7 months ago • 1 comments

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

NateD-MSFT avatar Jul 09 '24 19:07 NateD-MSFT