mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-09 02:45:17 +00:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
![]() |
// Copyright (c) Microsoft Corporation
|
||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||
|
// See the LICENSE file in the project root for more information.
|
||
|
|
||
|
using System;
|
||
|
using System.Windows.Forms;
|
||
|
using MouseJumpUI.Helpers;
|
||
|
|
||
|
namespace MouseJumpUI;
|
||
|
|
||
|
internal static class Program
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// The main entry point for the application.
|
||
|
/// </summary>
|
||
|
[STAThread]
|
||
|
private static void Main()
|
||
|
{
|
||
|
// To customize application configuration such as set high DPI settings or default font,
|
||
|
// see https://aka.ms/applicationconfiguration.
|
||
|
ApplicationConfiguration.Initialize();
|
||
|
|
||
|
if (PowerToys.GPOWrapper.GPOWrapper.GetConfiguredMouseJumpEnabledValue() == PowerToys.GPOWrapper.GpoRuleConfigured.Disabled)
|
||
|
{
|
||
|
// TODO : Log message
|
||
|
Logger.LogWarning("Tried to start with a GPO policy setting the utility to always be disabled. Please contact your systems administrator.");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
if (Application.HighDpiMode != HighDpiMode.PerMonitorV2)
|
||
|
{
|
||
|
Logger.LogError("High dpi mode is not set to PerMonitorV2.");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
Application.Run(new MainForm());
|
||
|
}
|
||
|
}
|