Skip to content

Commit

Permalink
for issue 1
Browse files Browse the repository at this point in the history
  • Loading branch information
simpledotnet committed Feb 8, 2015
1 parent 85c6f39 commit 8686fe5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion SimpleAssemblyExplorer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,26 @@
using System.Configuration;
using SimpleUtils;
using SimpleUtils.Win;
using System.Runtime.InteropServices;

namespace SimpleAssemblyExplorer
{
static class Program
{
[DllImport("user32.dll")]
private static extern bool SetProcessDPIAware();

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
{
if (Environment.OSVersion.Version.Major >= 6)
{
SetProcessDPIAware();
}

Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

Expand Down

0 comments on commit 8686fe5

Please sign in to comment.