This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace VibranceHud;
internal static class StoreRestart
{
private const int RESTART_NO_CRASH = 1;
private const int RESTART_NO_HANG = 2;
private const int RESTART_NO_REBOOT = 8;
internal static void Register()
{
try
{
Ask();
}
catch
{
}
}
[MethodImpl(MethodImplOptions.NoInlining)]
private static void Ask()
{
RegisterApplicationRestart("--tray", 11);
}
[DllImport("kernel32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
private static extern int RegisterApplicationRestart(string pwzCommandline, int dwFlags);
}