示例#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));
        }
示例#2
0
 internal static extern bool SystemParametersInfoHighContrast(uint action, uint param, ref HighContrastData vparam, uint init);
示例#3
0
 private HighContrast(HighContrastData data)
 {
     _data = data;
 }