Exemple #1
0
        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);
Exemple #3
0
 private HighContrast(HighContrastData data)
 {
     _data = data;
 }