/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/Settings.UI.Library/Utilities/NativeMethods.cs
26 строк
910 B
Andrey Nekrasov
[Chore] Run solution code cleanup (#20584)
16 сен 2022, 11:54
Не верифицирован
16 сен 2022, 11:54
ca3c758
Код
Авторство
О чём код?
// 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; namespace Microsoft.PowerToys.Settings.UI.Library.Utilities { internal static class NativeMethods { [DllImport("user32.dll")] public static extern bool AllowSetForegroundWindow(int dwProcessId); public const int SWRESTORE = 9; [System.Runtime.InteropServices.DllImport("User32.dll")] public static extern bool SetForegroundWindow(IntPtr handle); [System.Runtime.InteropServices.DllImport("User32.dll")] public static extern bool ShowWindow(IntPtr handle, int nCmdShow); [System.Runtime.InteropServices.DllImport("User32.dll")] public static extern bool IsIconic(IntPtr handle); } }