mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
18 lines
650 B
C#
18 lines
650 B
C#
|
|
// 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;
|
|||
|
|
|
|||
|
|
internal static class NativeMethods
|
|||
|
|
{
|
|||
|
|
[DllImport("user32.dll")]
|
|||
|
|
internal static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags);
|
|||
|
|
|
|||
|
|
internal static readonly IntPtr HWND_TOPMOST = new System.IntPtr(-1);
|
|||
|
|
internal const uint SWP_NOSIZE = 0x0001;
|
|||
|
|
internal const uint SWP_NOMOVE = 0x0002;
|
|||
|
|
internal const uint SWP_SHOWWINDOW = 0x0040;
|
|||
|
|
}
|