/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tools/MouseJump.Kicker/NativeMethods/User32/WindowsAndMessaging/User32.SetForegroundWindow.cs
27 строк
984 B
Michael Clayton
Ready for Review - [Mouse Jump] - port upstream WinUI3 code to Mouse Jump (microsoft#48290) (#48393)
07 авг 2026, 08:34
Не верифицирован
07 авг 2026, 08:34
e0010c5
Код
Авторство
О чём код?
// 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.Runtime.InteropServices; using static MouseJump.Kicker.NativeMethods.Core; namespace MouseJump.Kicker.NativeMethods; internal static partial class User32 { /// <summary> /// Brings the thread that created the specified window into the foreground and /// activates the window. /// </summary> /// <returns> /// If the window was brought to the foreground, the return value is nonzero. /// If the window was not brought to the foreground, the return value is zero. /// </returns> /// <remarks> /// See https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setforegroundwindow /// </remarks> [LibraryImport(Libraries.User32, SetLastError = true)] internal static partial BOOL SetForegroundWindow( HWND hWnd); }