You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
545 B

3 years ago
  1. using System;
  2. using System.Windows.Forms;
  3. namespace Apewer.Tray
  4. {
  5. class Program
  6. {
  7. [STAThread]
  8. static void Main(string[] args)
  9. {
  10. if (Environment.OSVersion.Version.Major >= 6) SetProcessDPIAware();
  11. Application.EnableVisualStyles();
  12. Application.SetCompatibleTextRenderingDefault(false);
  13. Application.Run(new MainForm());
  14. }
  15. [System.Runtime.InteropServices.DllImport("user32.dll")]
  16. private static extern bool SetProcessDPIAware();
  17. }
  18. }