fixed comment into code
This commit is contained in:
@@ -3,21 +3,21 @@ using System.Runtime.InteropServices;
|
||||
namespace CursorLang.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// Право выводить окно на передний план.
|
||||
/// The right to bring a window to the foreground.
|
||||
/// </summary>
|
||||
internal static class ForegroundPermissionNative
|
||||
{
|
||||
/// <summary>ASFW_ANY — право получает любой процесс.</summary>
|
||||
/// <summary>ASFW_ANY — any process gets the right.</summary>
|
||||
private const uint AnyProcess = 0xFFFFFFFF;
|
||||
|
||||
/// <summary>
|
||||
/// Уступает своё право вывести окно на передний план другим процессам.
|
||||
/// Gives up our right to bring a window to the foreground in favour of other processes.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Поменять окно переднего плана Windows разрешает не всякому: нужно быть
|
||||
/// процессом, с которым пользователь работал последним. Давно запущенный
|
||||
/// экземпляр приложения к таким не относится, и его окно всплывёт только
|
||||
/// если правом поделится процесс, который пользователь запустил только что.
|
||||
/// Windows does not let just anyone change the foreground window: you have to be
|
||||
/// the process the user interacted with last. An instance started long ago is not
|
||||
/// one of those, and its window will come up only if the right is shared by the
|
||||
/// process the user has just launched.
|
||||
/// </remarks>
|
||||
internal static void GrantToAnyProcess() => AllowSetForegroundWindow(AnyProcess);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user