Add rust kext to the mono repo
This commit is contained in:
9
windows_kext/wdk/src/error.rs
Normal file
9
windows_kext/wdk/src/error.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
// use anyhow::anyhow;
|
||||
|
||||
// pub fn anyhow_ntstatus(status: i32) -> anyhow::Error {
|
||||
// if let Some(value) = ntstatus::ntstatus::NtStatus::from_u32(status as u32) {
|
||||
// return anyhow!(value);
|
||||
// }
|
||||
|
||||
// return anyhow!("UNKNOWN_NTSTATUS_CODE");
|
||||
// }
|
||||
Reference in New Issue
Block a user