Function unexpectedStatus [src]
Call this when you made a windows NtDll call
and you get an unexpected status.
Prototype
pub fn unexpectedStatus(status: NTSTATUS) UnexpectedError
Parameters
status: NTSTATUS
Source
pub fn unexpectedStatus(status: NTSTATUS) UnexpectedError {
if (std.posix.unexpected_error_tracing) {
std.debug.print("error.Unexpected NTSTATUS=0x{x}\n", .{@intFromEnum(status)});
std.debug.dumpCurrentStackTrace(@returnAddress());
}
return error.Unexpected;
}