/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/System.Management.Automation/engine/Interop/Windows/ShowWindow.cs
32 строки
1 KB
Ilya
Replace `DllImport` with `LibraryImport` - 1 (#18603)
30 ноя 2022, 21:00
Не верифицирован
30 ноя 2022, 21:00
3dc95ce
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #nullable enable using System.Runtime.InteropServices; internal static partial class Interop { internal static unsafe partial class Windows { internal const int SW_HIDE = 0; internal const int SW_SHOWNORMAL = 1; internal const int SW_NORMAL = 1; internal const int SW_SHOWMINIMIZED = 2; internal const int SW_SHOWMAXIMIZED = 3; internal const int SW_MAXIMIZE = 3; internal const int SW_SHOWNOACTIVATE = 4; internal const int SW_SHOW = 5; internal const int SW_MINIMIZE = 6; internal const int SW_SHOWMINNOACTIVE = 7; internal const int SW_SHOWNA = 8; internal const int SW_RESTORE = 9; internal const int SW_SHOWDEFAULT = 10; internal const int SW_FORCEMINIMIZE = 11; internal const int SW_MAX = 11; [LibraryImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] internal static partial bool ShowWindow(nint hWnd, int nCmdShow); } }