FEATURE-992: Fixing a problem with the editor not becoming the foreground window. [skip ci]

This commit is contained in:
Robin 2016-12-26 21:00:15 +01:00
commit eabe6a18be
3 changed files with 22 additions and 1 deletions

View file

@ -62,6 +62,8 @@ namespace GreenshotPlugin.UnmanagedHelpers {
#region DllImports
[DllImport("user32", SetLastError = true)]
public static extern bool keybd_event(byte bVk, byte bScan, uint dwFlags, int dwExtraInfo);
[DllImport("user32", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool IsWindowVisible(IntPtr hWnd);
[DllImport("user32", SetLastError = true)]