Files
BrightSharp.Toolkit/BrightSharp/Interop/NativeMethods.cs

21 lines
515 B
C#
Raw Permalink Normal View History

2017-09-09 11:53:21 +03:00
using BrightSharp.Interop.Structures;
using System;
using System.Runtime.InteropServices;
namespace BrightSharp.Interop
{
internal static class NativeMethods
{
#region Monitor
[DllImport("user32.dll", SetLastError = true)]
internal static extern bool GetMonitorInfo(IntPtr hMonitor, MONITORINFO lpmi);
[DllImport("user32.dll", SetLastError = true)]
internal static extern IntPtr MonitorFromWindow(IntPtr handle, int flags);
#endregion
}
}