using System; using System.Runtime.InteropServices; // ReSharper disable InconsistentNaming namespace Katteker.Gui { /// /// Native methods. /// public static class NativeMethods { /// /// Hit Test Caption /// public const int HTCAPTION = 0x2; /// /// Posted when the user presses the left mouse button while the cursor is within the nonclient area of a window. /// public const int WM_NCLBUTTONDOWN = 0xA1; /// /// Release the capture /// [DllImport("User32.dll")] public static extern bool ReleaseCapture(); /// /// Send message /// [DllImport("User32.dll")] public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); /// /// Set Process API aware /// [DllImport("user32.dll")] public static extern bool SetProcessDPIAware(); } }