mirror of
https://github.com/vinaypamnani/wmie2.git
synced 2025-12-06 04:12:02 +01:00
27 lines
700 B
C#
27 lines
700 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Windows.Forms;
|
|||
|
|
|
|||
|
|
namespace WmiExplorer
|
|||
|
|
{
|
|||
|
|
static class Program
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// The main entry point for the application.
|
|||
|
|
/// </summary>
|
|||
|
|
[STAThread]
|
|||
|
|
static void Main()
|
|||
|
|
{
|
|||
|
|
if (Environment.OSVersion.Version.Major >= 6) SetProcessDPIAware();
|
|||
|
|
Application.EnableVisualStyles();
|
|||
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|||
|
|
Application.Run(new WmiExplorer());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[System.Runtime.InteropServices.DllImport("user32.dll")]
|
|||
|
|
private static extern bool SetProcessDPIAware();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|