accidental blowout of the project files

This commit is contained in:
Daniel Clark
2021-02-15 12:21:59 +00:00
parent 49169b1044
commit 36259ccb6b
52 changed files with 313 additions and 189 deletions
@@ -0,0 +1,12 @@
using Microsoft.Windows.Sdk;
using System;
namespace TheXamlGuy.NotificationFlyout.Common.Helpers
{
public class WindowHelper
{
public static IntPtr GetHandle(string windowName) => PInvoke.FindWindow(windowName, null);
public static uint GetDpi(IntPtr handle) => PInvoke.GetDpiForWindow((HWND)handle);
}
}