Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
ShowWindow.cs33 linesDownload Raw Back to Windows
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4#nullable enable5 6using System.Runtime.InteropServices;7 8internal static partial class Interop9{10    internal static unsafe partial class Windows11    {12        internal const int SW_HIDE = 0;13        internal const int SW_SHOWNORMAL = 1;14        internal const int SW_NORMAL = 1;15        internal const int SW_SHOWMINIMIZED = 2;16        internal const int SW_SHOWMAXIMIZED = 3;17        internal const int SW_MAXIMIZE = 3;18        internal const int SW_SHOWNOACTIVATE = 4;19        internal const int SW_SHOW = 5;20        internal const int SW_MINIMIZE = 6;21        internal const int SW_SHOWMINNOACTIVE = 7;22        internal const int SW_SHOWNA = 8;23        internal const int SW_RESTORE = 9;24        internal const int SW_SHOWDEFAULT = 10;25        internal const int SW_FORCEMINIMIZE = 11;26        internal const int SW_MAX = 11;27 28        [LibraryImport("user32.dll")]29        [return: MarshalAs(UnmanagedType.Bool)]30        internal static partial bool ShowWindow(nint hWnd, int nCmdShow);31    }32}33