mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Gamma Init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using WindowsDisplayAPI.Native.Structures;
|
||||
|
||||
namespace WindowsDisplayAPI.Native.DeviceContext.Structures
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct MonitorInfo
|
||||
{
|
||||
internal uint Size;
|
||||
public readonly RectangleL Bounds;
|
||||
public readonly RectangleL WorkingArea;
|
||||
public readonly MonitorInfoFlags Flags;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
|
||||
public readonly string DisplayName;
|
||||
|
||||
public static MonitorInfo Initialize()
|
||||
{
|
||||
return new MonitorInfo
|
||||
{
|
||||
Size = (uint)Marshal.SizeOf(typeof(MonitorInfo))
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user