misc: Also show an error message box and quit if the process was launched with administrator rights.

This commit is contained in:
GreemDev
2025-10-28 20:57:03 -05:00
parent 40f709ff55
commit 3140ec5f05
2 changed files with 17 additions and 6 deletions

View File

@@ -112,5 +112,8 @@ namespace Ryujinx.Ava.UI.Helpers
[LibraryImport("user32.dll", SetLastError = true)]
public static partial ushort GetAsyncKeyState(int nVirtKey);
[LibraryImport("user32.dll", SetLastError = true)]
public static partial int MessageBoxA(nint hWnd, [MarshalAs(UnmanagedType.LPStr)] string text, [MarshalAs(UnmanagedType.LPStr)] string caption, uint type);
}
}