dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.11k stars 220 forks source link

Refactor FacilityCode bitshift op to Facility properties #604

Closed BinToss closed 1 year ago

BinToss commented 2 years ago

Simply put, this implies moving the bitshift operation out of the enum definition and into the NTSTATUS.Facility and HResult.Facility properties. This is more or less the same as what was done to solve #600.

This solution grants users of this library easier understanding of the FacilityCode enum values.

Files to be modified: