internal static void ThrowWin32Exception(string message, Enumerations.NtStatus ntStatus) { // Convert the nt status into a DOS error code var errorCode = PInvoke.RtlNtStatusToDosError(ntStatus); throw new Win32Exception($"{message} with error code {errorCode}"); }
internal static extern ulong RtlNtStatusToDosError(Enumerations.NtStatus ntStatus);