public static HighContrast Create() { var data = new HighContrastData(); data.Size = (UInt32)Marshal.SizeOf(data); NativeMethods.SystemParametersInfoHighContrast(SPI_GetHighContrast, data.Size, ref data, 0); return(new HighContrast(data)); }
internal static extern bool SystemParametersInfoHighContrast(uint action, uint param, ref HighContrastData vparam, uint init);
private HighContrast(HighContrastData data) { _data = data; }