mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 01:36:31 +02:00
* Use single BringToForeground across the solution * Close flyout manually * Try with sending input, if it fails try threads
22 lines
802 B
C#
22 lines
802 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
[module: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1636:FileHeaderCopyrightTextMustMatch", Justification = "File created under PowerToys.")]
|
|
|
|
namespace ImageResizer.Utilities
|
|
{
|
|
// Win32 functions required for temporary workaround for issue #1273
|
|
internal class NativeMethods
|
|
{
|
|
[DllImport("user32.dll")]
|
|
internal static extern bool SetForegroundWindow(IntPtr hWnd);
|
|
|
|
[DllImport("user32.dll", SetLastError = true)]
|
|
internal static extern bool SetProcessDPIAware();
|
|
}
|
|
}
|